mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 11:16:03 -04:00
Ensure keys to RoomStreamChangeCache are ints
This commit is contained in:
parent
e1941442d4
commit
c23a8c7833
2 changed files with 12 additions and 5 deletions
|
@ -199,12 +199,13 @@ class StreamStore(SQLBaseStore):
|
|||
if from_key == to_key:
|
||||
defer.returnValue(([], from_key))
|
||||
|
||||
has_changed = yield self._events_stream_cache.get_room_has_changed(
|
||||
room_id, from_id
|
||||
)
|
||||
if from_id:
|
||||
has_changed = yield self._events_stream_cache.get_room_has_changed(
|
||||
room_id, from_id
|
||||
)
|
||||
|
||||
if not has_changed:
|
||||
defer.returnValue(([], from_key))
|
||||
if not has_changed:
|
||||
defer.returnValue(([], from_key))
|
||||
|
||||
def f(txn):
|
||||
if from_id is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue