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, otherwise it looks like we're…
Browse files Browse the repository at this point in the history
… not.

Should fix element-hq/element-web#7209
  • Loading branch information
ara4n committed Aug 22, 2018
1 parent 324525f commit 78cc026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,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 78cc026

Please sign in to comment.