diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-06 14:52:22 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-06 14:52:22 +0000 |
commit | e3c3f5a6d04bfbc0256010e9fb4dad7616ebbcc5 (patch) | |
tree | 25716cfbd85da66da6af8732d858780c82f56401 /syweb/webclient/room | |
parent | Use mRoomName on join notifications as well. (diff) | |
download | synapse-e3c3f5a6d04bfbc0256010e9fb4dad7616ebbcc5.tar.xz |
Swap from using raw m.room.member events for room members to using actual RoomMember objects, so User objects can be tacked on. Update tests.
Diffstat (limited to 'syweb/webclient/room')
-rw-r--r-- | syweb/webclient/room/room-controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syweb/webclient/room/room-controller.js b/syweb/webclient/room/room-controller.js index a2bc23195d..d3fb85b9dc 100644 --- a/syweb/webclient/room/room-controller.js +++ b/syweb/webclient/room/room-controller.js @@ -754,13 +754,13 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) for (var i in members) { if (!members.hasOwnProperty(i)) continue; - var member = members[i]; + var member = members[i].event; updateMemberList(member); } // Check if the user has already join the room if ($scope.state.user_id in members) { - if ("join" === members[$scope.state.user_id].membership) { + if ("join" === members[$scope.state.user_id].event.content.membership) { needsToJoin = false; } } |