diff options
author | Erik Johnston <erikj@jki.re> | 2017-01-10 14:06:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 14:06:05 +0000 |
commit | 657488113e26115fa134deb8ca554188f3aa3709 (patch) | |
tree | f34de028f69dc157b2b4648cd2b7f3301c86d746 | |
parent | Merge pull request #1787 from matrix-org/erikj/linearize_member (diff) | |
parent | Comment (diff) | |
download | synapse-657488113e26115fa134deb8ca554188f3aa3709.tar.xz |
Merge pull request #1789 from matrix-org/erikj/decouple_presence
Don't block messages sending on bumping presence
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 7a57a69bd3..88bd2d572e 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -279,7 +279,9 @@ class MessageHandler(BaseHandler): if event.type == EventTypes.Message: presence = self.hs.get_presence_handler() - yield presence.bump_presence_active_time(user) + # We don't want to block sending messages on any presence code. This + # matters as sometimes presence code can take a while. + preserve_fn(presence.bump_presence_active_time)(user) @defer.inlineCallbacks def deduplicate_state_event(self, event, context): |