mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 01:13:50 +01:00
Add comment
This commit is contained in:
parent
af2fe6110c
commit
8a88684736
1 changed files with 3 additions and 0 deletions
|
@ -184,6 +184,9 @@ class StreamStore(SQLBaseStore):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def get_room_events_stream_for_room(self, room_id, from_key, to_key, limit=0,
|
def get_room_events_stream_for_room(self, room_id, from_key, to_key, limit=0,
|
||||||
order='DESC'):
|
order='DESC'):
|
||||||
|
# Note: If from_key is None then we return in topological order. This
|
||||||
|
# is because in that case we're using this as a "get the last few messages
|
||||||
|
# in a room" function, rather than "get new messages since last sync"
|
||||||
if from_key is not None:
|
if from_key is not None:
|
||||||
from_id = RoomStreamToken.parse_stream_token(from_key).stream
|
from_id = RoomStreamToken.parse_stream_token(from_key).stream
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue