diff options
author | Erik Johnston <erik@matrix.org> | 2020-02-26 15:33:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 15:33:26 +0000 |
commit | 1f773eec912e4908ab60f7823f5c0a024261af4d (patch) | |
tree | 3b75bb043a46554b1296003cd9974a0b35ce6a8c /synapse/handlers/message.py | |
parent | Updated warning for incorrect database collation/ctype (#6985) (diff) | |
download | synapse-1f773eec912e4908ab60f7823f5c0a024261af4d.tar.xz |
Port PresenceHandler to async/await (#6991)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index d6be280952..a0103addd3 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -1016,11 +1016,10 @@ class EventCreationHandler(object): # matters as sometimes presence code can take a while. run_in_background(self._bump_active_time, requester.user) - @defer.inlineCallbacks - def _bump_active_time(self, user): + async def _bump_active_time(self, user): try: presence = self.hs.get_presence_handler() - yield presence.bump_presence_active_time(user) + await presence.bump_presence_active_time(user) except Exception: logger.exception("Error bumping presence active time") |