summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst5
-rw-r--r--synapse/__init__.py2
-rw-r--r--synapse/storage/stream.py2
3 files changed, 7 insertions, 2 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index ac7dcdca2c..bebf489e21 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,8 @@
+Changes in synapse v0.13.3 (2016-02-11)
+=======================================
+
+* Fix bug where ``/sync`` would occasionally return events in the wrong room.
+
 Changes in synapse v0.13.2 (2016-02-11)
 =======================================
 
diff --git a/synapse/__init__.py b/synapse/__init__.py
index 9c4213a4a9..bc50bec9db 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -16,4 +16,4 @@
 """ This is a reference implementation of a Matrix home server.
 """
 
-__version__ = "0.13.2"
+__version__ = "0.13.3"
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py
index 0d1034c6f1..c236dafafb 100644
--- a/synapse/storage/stream.py
+++ b/synapse/storage/stream.py
@@ -175,7 +175,7 @@ class StreamStore(SQLBaseStore):
                 preserve_fn(self.get_room_events_stream_for_room)(
                     room_id, from_key, to_key, limit, order=order,
                 )
-                for room_id in room_ids
+                for room_id in rm_ids
             ])
             results.update(dict(zip(rm_ids, res)))