mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Comments
This commit is contained in:
parent
187dc6ad02
commit
bca3455b38
@ -453,6 +453,8 @@ class RoomWorkerStore(SQLBaseStore):
|
|||||||
remote_media_mxcs = []
|
remote_media_mxcs = []
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
# The first time round we just want to get the most recent
|
||||||
|
# events, then we bound by stream ordering
|
||||||
if next_token is None:
|
if next_token is None:
|
||||||
sql = """
|
sql = """
|
||||||
SELECT stream_ordering, json FROM events
|
SELECT stream_ordering, json FROM events
|
||||||
@ -496,6 +498,7 @@ class RoomWorkerStore(SQLBaseStore):
|
|||||||
remote_media_mxcs.append((hostname, media_id))
|
remote_media_mxcs.append((hostname, media_id))
|
||||||
|
|
||||||
if next_token is None:
|
if next_token is None:
|
||||||
|
# We've gone through the whole room, so we're finished.
|
||||||
break
|
break
|
||||||
|
|
||||||
return local_media_mxcs, remote_media_mxcs
|
return local_media_mxcs, remote_media_mxcs
|
||||||
|
Loading…
Reference in New Issue
Block a user