summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-04-13 13:46:17 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-04-13 13:46:17 +0100
commit6a70647d453ddeae9599601cc49a6b7cde5de519 (patch)
tree431eae3e10f7552e0d7660666908f80891212ca4 /synapse/storage/events.py
parentSimplify is_event_after logic (diff)
downloadsynapse-6a70647d453ddeae9599601cc49a6b7cde5de519.tar.xz
Correct logic in is_event_after
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 221cb563d8..a3790419dd 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -2165,7 +2165,7 @@ class EventsStore(SQLBaseStore):
         """
         to_1, so_1 = yield self._get_event_ordering(event_id1)
         to_2, so_2 = yield self._get_event_ordering(event_id2)
-        defer.returnValue(to_1 > to_2 and so_1 > so_2)
+        defer.returnValue((to_1, so_1) > (to_2, so_2))
 
     @defer.inlineCallbacks
     def _get_event_ordering(self, event_id):