summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-18 15:28:52 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-18 15:28:52 +0200
commitb7d42c1e93034da2aa7185f1742c56c7bb45cbcc (patch)
tree031da6d46260130afe171eca9a173f7b724ade0a /webclient
parentReverted patches done for SYWEB-40 (diff)
downloadsynapse-b7d42c1e93034da2aa7185f1742c56c7bb45cbcc.tar.xz
SYWEB-40: Only local rooms are shown in the recents list.
Removed an old patch that deduplicated join events. This patch is now useless. Plus it is buggy since it compared event.content and event.prev_content only on the membership field whereas these objects contain more data now like displayname...
Diffstat (limited to 'webclient')
-rw-r--r--webclient/components/matrix/event-handler-service.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index d3de10c7e2..321054f904 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -232,13 +232,6 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
     };
     
     var handleRoomMember = function(event, isLiveEvent, isStateEvent) {
-        // if the server is stupidly re-relaying a no-op join, discard it.
-        if (event.prev_content && 
-            event.content.membership === "join" &&
-            event.content.membership === event.prev_content.membership)
-        {
-            return;
-        }
         
         // add membership changes as if they were a room message if something interesting changed
         // Exception: Do not do this if the event is a room state event because such events already come