mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Fix up one more reference
This commit is contained in:
parent
57619d6058
commit
825f0875bc
@ -28,7 +28,6 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
SyncConfig = collections.namedtuple("SyncConfig", [
|
SyncConfig = collections.namedtuple("SyncConfig", [
|
||||||
"user",
|
"user",
|
||||||
"client_info",
|
|
||||||
"limit",
|
"limit",
|
||||||
"gap",
|
"gap",
|
||||||
"sort",
|
"sort",
|
||||||
|
@ -87,7 +87,7 @@ class SyncRestServlet(RestServlet):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request):
|
def on_GET(self, request):
|
||||||
user, _ = yield self.auth.get_user_by_req(request)
|
user, token_id = yield self.auth.get_user_by_req(request)
|
||||||
|
|
||||||
timeout = parse_integer(request, "timeout", default=0)
|
timeout = parse_integer(request, "timeout", default=0)
|
||||||
limit = parse_integer(request, "limit", required=True)
|
limit = parse_integer(request, "limit", required=True)
|
||||||
@ -125,7 +125,6 @@ class SyncRestServlet(RestServlet):
|
|||||||
|
|
||||||
sync_config = SyncConfig(
|
sync_config = SyncConfig(
|
||||||
user=user,
|
user=user,
|
||||||
client_info=client,
|
|
||||||
gap=gap,
|
gap=gap,
|
||||||
limit=limit,
|
limit=limit,
|
||||||
sort=sort,
|
sort=sort,
|
||||||
@ -152,7 +151,7 @@ class SyncRestServlet(RestServlet):
|
|||||||
sync_result.private_user_data, filter, time_now
|
sync_result.private_user_data, filter, time_now
|
||||||
),
|
),
|
||||||
"rooms": self.encode_rooms(
|
"rooms": self.encode_rooms(
|
||||||
sync_result.rooms, filter, time_now, client.token_id
|
sync_result.rooms, filter, time_now, token_id
|
||||||
),
|
),
|
||||||
"next_batch": sync_result.next_batch.to_string(),
|
"next_batch": sync_result.next_batch.to_string(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user