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

Commit

Permalink
don't filter membership events based on history visibility (#3874)
Browse files Browse the repository at this point in the history
don't filter membership events based on history visibility
as we will already have filtered the messages in the timeline, and state events
are always visible.

and because @erikjohnston said so.
  • Loading branch information
ara4n authored Sep 14, 2018
1 parent 3e6e94f commit 024be6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Empty file added changelog.d/3874.bugfix
Empty file.
9 changes: 1 addition & 8 deletions synapse/handlers/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,7 @@ def get_messages(self, requester, room_id=None, pagin_config=None,

if state_ids:
state = yield self.store.get_events(list(state_ids.values()))

if state:
state = yield filter_events_for_client(
self.store,
user_id,
state.values(),
is_peeking=(member_event_id is None),
)
state = state.values()

time_now = self.clock.time_msec()

Expand Down

0 comments on commit 024be6c

Please sign in to comment.