summary refs log tree commit diff
path: root/webclient/home/home-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-28 17:48:55 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 09:32:09 +0200
commit246b2a3c3e039bd1eef447cf1e7b5f78bcce20a3 (patch)
tree322534f5f93ed838a457b9018d27f58698fae033 /webclient/home/home-controller.js
parentFix FederationHandler to event.origin (diff)
downloadsynapse-246b2a3c3e039bd1eef447cf1e7b5f78bcce20a3.tar.xz
Renamed matrixService.assignRoomAliases into getRoomAliasAndDisplayName
Diffstat (limited to 'webclient/home/home-controller.js')
-rw-r--r--webclient/home/home-controller.js8
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));
+                }
             }
         );
     };