Initial room event stream token must be s0, not s1, or everyone will miss the very first room event

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-28 17:39:34 +01:00
parent efc5f3440d
commit 2c7c12bc6e
1 changed files with 1 additions and 1 deletions

View File

@ -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,)