summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-23 18:48:30 +0000
committerDavid Baker <dave@matrix.org>2017-03-23 18:48:30 +0000
commit86e865d7d2f22bce2c5aa72f20938129d8277a4e (patch)
treeb40b921688cea5e3f12f4fb19f6ab73a89beee58 /synapse
parentFix token request for addition of phone numbers (diff)
downloadsynapse-86e865d7d2f22bce2c5aa72f20938129d8277a4e.tar.xz
Oops, remove unintentional change
Diffstat (limited to 'synapse')
-rw-r--r--synapse/visibility.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index 31659156ae..199b16d827 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -134,13 +134,6 @@ def filter_events_for_clients(store, user_tuples, events, event_id_to_state):
             if prev_membership not in MEMBERSHIP_PRIORITY:
                 prev_membership = "leave"
 
-            # Always allow the user to see their own leave events, otherwise
-            # they won't see the room disappear if they reject the invite
-            if membership == "leave" and (
-                prev_membership == "join" or prev_membership == "invite"
-            ):
-                return True
-
             new_priority = MEMBERSHIP_PRIORITY.index(membership)
             old_priority = MEMBERSHIP_PRIORITY.index(prev_membership)
             if old_priority < new_priority: