Refresh room & member avatars when a roommember.name event comes in

This commit is contained in:
David Baker 2015-10-28 15:15:35 +00:00
parent a850f19cd4
commit 2365fe8ceb
5 changed files with 52 additions and 7 deletions

View file

@ -38,6 +38,7 @@ module.exports = {
componentWillMount: function() {
var cli = MatrixClientPeg.get();
cli.on("RoomState.members", this.onRoomStateMember);
cli.on("RoomMember.name", this.onRoomMemberName);
cli.on("Room", this.onRoom); // invites
},
@ -97,6 +98,10 @@ module.exports = {
this._updateList();
},
onRoomMemberName: function(ev, member) {
this._updateList();
},
_updateList: function() {
this.memberDict = this.getMemberDict();