summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-02-26 15:33:26 +0000
committerGitHub <noreply@github.com>2020-02-26 15:33:26 +0000
commit1f773eec912e4908ab60f7823f5c0a024261af4d (patch)
tree3b75bb043a46554b1296003cd9974a0b35ce6a8c /synapse/handlers/message.py
parentUpdated warning for incorrect database collation/ctype (#6985) (diff)
downloadsynapse-1f773eec912e4908ab60f7823f5c0a024261af4d.tar.xz
Port PresenceHandler to async/await (#6991)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py5
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")