diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-04-13 13:46:17 +0100 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-04-13 13:46:17 +0100 |
commit | 6a70647d453ddeae9599601cc49a6b7cde5de519 (patch) | |
tree | 431eae3e10f7552e0d7660666908f80891212ca4 /synapse/storage/events.py | |
parent | Simplify is_event_after logic (diff) | |
download | synapse-6a70647d453ddeae9599601cc49a6b7cde5de519.tar.xz |
Correct logic in is_event_after
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 2 |
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): |