Correct logic in is_event_after

This commit is contained in:
Luke Barnard 2017-04-13 13:46:17 +01:00
parent b9557064bf
commit 6a70647d45

View File

@ -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):