mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 09:42:20 -04:00
Guest users must be joined to a room to see it in /sync
This commit is contained in:
parent
bf32922e5a
commit
392773ccb2
4 changed files with 56 additions and 143 deletions
|
@ -120,15 +120,10 @@ class SyncRestServlet(RestServlet):
|
|||
except:
|
||||
filter = FilterCollection({})
|
||||
|
||||
if is_guest and filter.list_rooms() is None:
|
||||
raise SynapseError(
|
||||
400, "Guest users must provide a list of rooms in the filter"
|
||||
)
|
||||
|
||||
sync_config = SyncConfig(
|
||||
user=user,
|
||||
is_guest=is_guest,
|
||||
filter=filter,
|
||||
is_guest=is_guest,
|
||||
)
|
||||
|
||||
if since is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue