Fixup functions to consistently return deferreds

This commit is contained in:
Erik Johnston 2019-12-06 10:14:59 +00:00
parent b2ee65ea8c
commit b3a4e35ca8
6 changed files with 28 additions and 14 deletions

View file

@ -313,7 +313,7 @@ class TypingNotificationEventSource(object):
events.append(self._make_event_for(room_id))
return events, handler._latest_room_serial
return defer.succeed((events, handler._latest_room_serial))
def get_current_key(self):
return self.get_typing_handler()._latest_room_serial