mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 19:23:51 +01:00
Ensure to parse a real pagination config object out of room initialSync request and pass it on
This commit is contained in:
parent
75e95c45a2
commit
88dfa7baa6
1 changed files with 4 additions and 2 deletions
|
@ -362,11 +362,13 @@ class RoomInitialSyncRestServlet(RestServlet):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request, room_id):
|
def on_GET(self, request, room_id):
|
||||||
user = yield self.auth.get_user_by_req(request)
|
user = yield self.auth.get_user_by_req(request)
|
||||||
events = yield self.handlers.message_handler.room_initial_sync(
|
pagination_config = PaginationConfig.from_request(request)
|
||||||
|
content = yield self.handlers.message_handler.room_initial_sync(
|
||||||
room_id=room_id,
|
room_id=room_id,
|
||||||
user_id=user.to_string(),
|
user_id=user.to_string(),
|
||||||
|
pagin_config=pagination_config,
|
||||||
)
|
)
|
||||||
defer.returnValue((200, events))
|
defer.returnValue((200, content))
|
||||||
|
|
||||||
|
|
||||||
class RoomTriggerBackfill(RestServlet):
|
class RoomTriggerBackfill(RestServlet):
|
||||||
|
|
Loading…
Reference in a new issue