summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-28 17:39:34 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-28 17:39:34 +0100
commit2c7c12bc6e13ea36ea56ede8292f5baa1eb12643 (patch)
tree924ed03eb913514fb8d754e9cccb8935aa03a3bc /synapse
parentOnly send presence "poll"/"unpoll" EDUs when changing from/to zero remotes (diff)
downloadsynapse-2c7c12bc6e13ea36ea56ede8292f5baa1eb12643.tar.xz
Initial room event stream token must be s0, not s1, or everyone will miss the very first room event
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py
index 4f42afc015..4945b0796e 100644
--- a/synapse/storage/stream.py
+++ b/synapse/storage/stream.py
@@ -294,7 +294,7 @@ class StreamStore(SQLBaseStore):
         logger.debug("get_room_events_max_id: %s", res)
 
         if not res or not res[0] or not res[0]["m"]:
-            return "s1"
+            return "s0"
 
         key = res[0]["m"]
         return "s%d" % (key,)