diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-28 17:48:55 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-29 09:32:09 +0200 |
commit | 246b2a3c3e039bd1eef447cf1e7b5f78bcce20a3 (patch) | |
tree | 322534f5f93ed838a457b9018d27f58698fae033 /webclient/home | |
parent | Fix FederationHandler to event.origin (diff) | |
download | synapse-246b2a3c3e039bd1eef447cf1e7b5f78bcce20a3.tar.xz |
Renamed matrixService.assignRoomAliases into getRoomAliasAndDisplayName
Diffstat (limited to 'webclient/home')
-rw-r--r-- | webclient/home/home-controller.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webclient/home/home-controller.js b/webclient/home/home-controller.js index 008dff7422..547a5c5603 100644 --- a/webclient/home/home-controller.js +++ b/webclient/home/home-controller.js @@ -42,7 +42,13 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen matrixService.publicRooms().then( function(response) { - $scope.public_rooms = matrixService.assignRoomAliases(response.data.chunk); + $scope.public_rooms = response.data.chunk; + for (var i = 0; i < $scope.public_rooms.length; i++) { + var room = $scope.public_rooms[i]; + + // Add room_alias & room_display_name members + angular.extend(room, matrixService.getRoomAliasAndDisplayName(room)); + } } ); }; |