summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2018-09-20 21:21:54 +0100
committerGitHub <noreply@github.com>2018-09-20 21:21:54 +0100
commita2ddaa90f21074a659abde45b712ab39324e97e4 (patch)
treefe90131210d4521776359a1f9d7c429a515ae64d /synapse/handlers/sync.py
parentMerge pull request #3868 from matrix-org/neilj/fix_room_invite_mail_links (diff)
downloadsynapse-a2ddaa90f21074a659abde45b712ab39324e97e4.tar.xz
Always LL ourselves if we're in a room to simplify clients (#3916)
Should fix https://github.com/vector-im/riot-web/issues/7209
Diffstat (limited to '')
-rw-r--r--synapse/handlers/sync.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 9bca4e7067..b598916b21 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -713,6 +713,10 @@ class SyncHandler(object):
                     )
                 ]
 
+                # always make sure we LL ourselves so we know we're in the room
+                # (if we are), to fix https://github.com/vector-im/riot-web/issues/7209
+                types.append((EventTypes.Member, sync_config.user.to_string()))
+
                 # only apply the filtering to room members
                 filtered_types = [EventTypes.Member]