Initial room event stream token must be s0, not s1, or everyone will miss the very first room event
This commit is contained in:
parent
efc5f3440d
commit
2c7c12bc6e
|
@ -294,7 +294,7 @@ class StreamStore(SQLBaseStore):
|
||||||
logger.debug("get_room_events_max_id: %s", res)
|
logger.debug("get_room_events_max_id: %s", res)
|
||||||
|
|
||||||
if not res or not res[0] or not res[0]["m"]:
|
if not res or not res[0] or not res[0]["m"]:
|
||||||
return "s1"
|
return "s0"
|
||||||
|
|
||||||
key = res[0]["m"]
|
key = res[0]["m"]
|
||||||
return "s%d" % (key,)
|
return "s%d" % (key,)
|
||||||
|
|
Loading…
Reference in New Issue