diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-01 18:50:39 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-01 18:52:24 +0200 |
commit | 7d99cee3ef9e84ea24755ef9097342cf631cda59 (patch) | |
tree | 4cf67374b020a33f423cd763c7899b8500a0a89d /webclient/recents/recents-controller.js | |
parent | Little bit more on syncing APIs, need to know more about responses before mor... (diff) | |
download | synapse-7d99cee3ef9e84ea24755ef9097342cf631cda59.tar.xz |
Added roomName, a directive to compute a room name based on its alias (not aliases for now) and its users displaynames or ids
Diffstat (limited to 'webclient/recents/recents-controller.js')
-rw-r--r-- | webclient/recents/recents-controller.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index c9fd022d7f..947bd29de3 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -33,8 +33,7 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService']) console.log("Invited to room " + event.room_id); // FIXME push membership to top level key to match /im/sync event.membership = event.content.membership; - // FIXME bodge a nicer name than the room ID for this invite. - event.room_display_name = event.user_id + "'s room"; + $scope.rooms[event.room_id] = event; } }); @@ -88,7 +87,9 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService']) }; $scope.onInit = function() { - refresh(); + eventHandlerService.waitForInitialSyncCompletion().then(function() { + refresh(); + }); }; }]); |