diff options
author | David Baker <dbkr@users.noreply.github.com> | 2015-01-28 15:41:24 +0000 |
---|---|---|
committer | David Baker <dbkr@users.noreply.github.com> | 2015-01-28 15:41:24 +0000 |
commit | fddc7a080afffee66f715234c535f11b94a4f411 (patch) | |
tree | efa2745186a2fde64cef7000f79d9e191d53dd13 /synapse/handlers/presence.py | |
parent | Initial cut of a shared base class for REST unit tests (diff) | |
parent | Use %s instead of + (diff) | |
download | synapse-fddc7a080afffee66f715234c535f11b94a4f411.tar.xz |
Merge pull request #35 from matrix-org/pushers2
Pushers branch (with fixes)
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index d66bfea7b1..cd0798c2b0 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -87,6 +87,10 @@ class PresenceHandler(BaseHandler): "changed_presencelike_data", self.changed_presencelike_data ) + # outbound signal from the presence module to advertise when a user's + # presence has changed + distributor.declare("user_presence_changed") + self.distributor = distributor self.federation = hs.get_replication_layer() @@ -604,6 +608,7 @@ class PresenceHandler(BaseHandler): room_ids=room_ids, statuscache=statuscache, ) + yield self.distributor.fire("user_presence_changed", user, statuscache) @defer.inlineCallbacks def _push_presence_remote(self, user, destination, state=None): |