From cee37c4152a7f1da0e059ec74c6a6826fdbd5558 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 28 Oct 2015 15:16:13 +0000 Subject: [PATCH] Port react-sdk 2365fe8c over to vector's fork of the roomlist controller --- src/controllers/organisms/RoomList.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index 03a1bfcd1..151a6ca27 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -34,6 +34,7 @@ module.exports = { cli.on("Room.timeline", this.onRoomTimeline); cli.on("Room.name", this.onRoomName); cli.on("RoomState.events", this.onRoomStateEvents); + cli.on("RoomMember.name", this.onRoomMemberName); var rooms = this.getRoomList(); this.setState({ @@ -116,6 +117,10 @@ module.exports = { setTimeout(this.refreshRoomList, 0); }, + onRoomMemberName: function(ev, member) { + setTimeout(this.refreshRoomList, 0); + }, + refreshRoomList: function() { var rooms = this.getRoomList();