mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-15 03:25:27 -04:00
Merge remote-tracking branch 'upstream/release-v1.28.0'
This commit is contained in:
commit
f6684e4e55
334 changed files with 6524 additions and 3380 deletions
|
@ -80,6 +80,7 @@ async def filter_events_for_client(
|
|||
events = [e for e in events if not e.internal_metadata.is_soft_failed()]
|
||||
|
||||
types = ((EventTypes.RoomHistoryVisibility, ""), (EventTypes.Member, user_id))
|
||||
|
||||
event_id_to_state = await storage.state.get_state_for_events(
|
||||
frozenset(e.event_id for e in events),
|
||||
state_filter=StateFilter.from_types(types),
|
||||
|
@ -241,7 +242,7 @@ async def filter_events_for_client(
|
|||
|
||||
elif visibility == HistoryVisibility.SHARED and is_peeking:
|
||||
# if the visibility is shared, users cannot see the event unless
|
||||
# they have *subequently* joined the room (or were members at the
|
||||
# they have *subsequently* joined the room (or were members at the
|
||||
# time, of course)
|
||||
#
|
||||
# XXX: if the user has subsequently joined and then left again,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue