mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 11:45:05 -04:00
Add allow_departed_users
param to check_in_room_or_world_readable
... and set it everywhere it's called. while we're here, rename it for consistency with `check_user_in_room` (and to help check that I haven't missed any instances)
This commit is contained in:
parent
b58d17e44f
commit
a0a1fd0bec
5 changed files with 33 additions and 15 deletions
|
@ -277,7 +277,9 @@ class InitialSyncHandler(BaseHandler):
|
|||
(
|
||||
membership,
|
||||
member_event_id,
|
||||
) = await self.auth.check_user_in_room_or_world_readable(room_id, user_id)
|
||||
) = await self.auth.check_user_in_room_or_world_readable(
|
||||
room_id, user_id, allow_departed_users=True,
|
||||
)
|
||||
is_peeking = member_event_id is None
|
||||
|
||||
if membership == Membership.JOIN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue