diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-12 11:14:19 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-12 11:14:19 +0000 |
commit | 9d0efedaee1e522e0fbc1300aee0c27e3ebf3eae (patch) | |
tree | c31d39a5c4f1f8a44693514a061f2028623bc6fb /syweb/webclient/home | |
parent | move model/ into matrix-doc/drafts (diff) | |
download | synapse-9d0efedaee1e522e0fbc1300aee0c27e3ebf3eae.tar.xz |
Move room alias/id mapping logic from matrixService to modelService.
Diffstat (limited to 'syweb/webclient/home')
-rw-r--r-- | syweb/webclient/home/home-controller.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/syweb/webclient/home/home-controller.js b/syweb/webclient/home/home-controller.js index 3a48e64ab4..467db09b3a 100644 --- a/syweb/webclient/home/home-controller.js +++ b/syweb/webclient/home/home-controller.js @@ -17,8 +17,8 @@ limitations under the License. 'use strict'; angular.module('HomeController', ['matrixService', 'eventHandlerService', 'RecentsController']) -.controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', - function($scope, $location, matrixService, eventHandlerService) { +.controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', 'modelService', + function($scope, $location, matrixService, eventHandlerService, modelService) { $scope.config = matrixService.config(); $scope.public_rooms = []; @@ -56,7 +56,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen var room = $scope.public_rooms[i]; // Add room_alias & room_display_name members - angular.extend(room, matrixService.getRoomAliasAndDisplayName(room)); + angular.extend(room, modelService.getRoomAliasAndDisplayName(room)); } } @@ -75,7 +75,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen // This room has been created. Refresh the rooms list console.log("Created room " + response.data.room_alias + " with id: "+ response.data.room_id); - matrixService.createRoomIdToAliasMapping( + modelService.createRoomIdToAliasMapping( response.data.room_id, response.data.room_alias); }, function(error) { |