mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 18:20:07 +00:00
Correct logic in is_event_after
This commit is contained in:
parent
b9557064bf
commit
6a70647d45
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue