Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Always LL ourselves if we're in a room to simplify clients #3916

Merged
merged 4 commits into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/3916.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Always LL ourselves if we're in a room
4 changes: 4 additions & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,10 @@ def compute_state_delta(self, room_id, batch, sync_config, since_token, now_toke
)
]

# 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]

Expand Down