summary refs log tree commit diff
path: root/webclient/recents
diff options
context:
space:
mode:
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) {