mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Have TypingNotificationEventSource.get_new_events_for_user() return a deferred, for consistency and extensibility
This commit is contained in:
parent
399b5add58
commit
0268d40281
3 changed files with 15 additions and 8 deletions
|
@ -252,7 +252,7 @@ class TypingNotificationEventSource(object):
|
|||
# TODO: check if user is in room
|
||||
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.handler()._latest_room_serial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue