mirror of
https://mau.dev/maunium/synapse.git
synced 2025-03-05 00:10:19 +01:00
don't filter membership events based on history visibility (#3874)
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.
This commit is contained in:
parent
3e6e94fe9f
commit
024be6cf18
2 changed files with 1 additions and 8 deletions
0
changelog.d/3874.bugfix
Normal file
0
changelog.d/3874.bugfix
Normal file
|
@ -269,14 +269,7 @@ class PaginationHandler(object):
|
||||||
|
|
||||||
if state_ids:
|
if state_ids:
|
||||||
state = yield self.store.get_events(list(state_ids.values()))
|
state = yield self.store.get_events(list(state_ids.values()))
|
||||||
|
state = state.values()
|
||||||
if state:
|
|
||||||
state = yield filter_events_for_client(
|
|
||||||
self.store,
|
|
||||||
user_id,
|
|
||||||
state.values(),
|
|
||||||
is_peeking=(member_event_id is None),
|
|
||||||
)
|
|
||||||
|
|
||||||
time_now = self.clock.time_msec()
|
time_now = self.clock.time_msec()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue