From fd2d3fcfd75aa5ca5651caf150fbb6088a940d85 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Tue, 9 Sep 2014 11:51:41 +0200 Subject: Removed historical code: recents does not need to manage presences. It is already done by initialSync in eventStreamService --- webclient/recents/recents-controller.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index 701c935742..efa5160c01 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -112,12 +112,6 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand $rootScope.rooms[room.room_id].numUsersInRoom = numUsersInRoom; } - var presence = initialSyncData.data.presence; - for (var i = 0; i < presence.length; ++i) { - eventHandlerService.handleEvent(presence[i], false); - } - - // From now, update recents from the stream listenToEventStream(); }, -- cgit 1.4.1