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

Commit

Permalink
Always LL ourselves if we're in a room to simplify clients (#3916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Sep 20, 2018
1 parent 23b53b4 commit a2ddaa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit a2ddaa9

Please sign in to comment.