mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:44:49 -04:00
Add a flag to initial sync to indicate we want rooms that the user has left
This commit is contained in:
parent
49ebd472fa
commit
dc72021748
2 changed files with 11 additions and 6 deletions
|
@ -29,10 +29,12 @@ class InitialSyncRestServlet(ClientV1RestServlet):
|
|||
as_client_event = "raw" not in request.args
|
||||
pagination_config = PaginationConfig.from_request(request)
|
||||
handler = self.handlers.message_handler
|
||||
include_archived = request.args.get("archived", None) == "1"
|
||||
content = yield handler.snapshot_all_rooms(
|
||||
user_id=user.to_string(),
|
||||
pagin_config=pagination_config,
|
||||
as_client_event=as_client_event
|
||||
as_client_event=as_client_event,
|
||||
include_archived=include_archived,
|
||||
)
|
||||
|
||||
defer.returnValue((200, content))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue