summary refs log tree commit diff
path: root/webclient/recents
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-03 12:18:22 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-03 12:18:22 +0000
commitfd535183eed4b2262109f90a9f29fe9e49b4b9a0 (patch)
treef7feb9a5b78aa0945b651585396b5841413499b9 /webclient/recents
parentMake recents[controller/filter/html] use modelService. (diff)
downloadsynapse-fd535183eed4b2262109f90a9f29fe9e49b4b9a0.tar.xz
Remove events.rooms[room_id] entirely from event-handler-service.
Everything now uses modelService, but there are still one or two
minor teething problems to fix.
Diffstat (limited to 'webclient/recents')
-rw-r--r--webclient/recents/recents-filter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webclient/recents/recents-filter.js b/webclient/recents/recents-filter.js
index cf0f53f37d..acd9f86ece 100644
--- a/webclient/recents/recents-filter.js
+++ b/webclient/recents/recents-filter.js
@@ -17,7 +17,7 @@
 'use strict';
 
 angular.module('RecentsController')
-.filter('orderRecents', ["matrixService", "eventHandlerService", function(matrixService, eventHandlerService) {
+.filter('orderRecents', ["matrixService", "eventHandlerService", "modelService", function(matrixService, eventHandlerService, modelService) {
     return function(rooms) {
         var user_id = matrixService.config().user_id;
 
@@ -29,7 +29,7 @@ angular.module('RecentsController')
             var meEvent = room.current_room_state.state("m.room.member", user_id);
             // Show the room only if the user has joined it or has been invited
             // (ie, do not show it if he has been banned)
-            var member = eventHandlerService.getMember(room_id, user_id);
+            var member = modelService.getMember(room_id, user_id);
             room.recent.me = member;
             if (member && ("invite" === member.membership || "join" === member.membership)) {
                 if ("invite" === member.membership) {