summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 11:55:49 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 11:55:49 +0000
commit273b12729b99addf4474c9092f44ff300fd8153b (patch)
tree7a47bb891027e8f569618ae26708ac55aee4e396 /synapse/handlers
parentOops, remove debugging (diff)
downloadsynapse-273b12729b99addf4474c9092f44ff300fd8153b.tar.xz
Reset badge count to zero when last active time is bumped
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py

index 8aeed99274..24d901b51f 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py
@@ -86,6 +86,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() @@ -603,6 +607,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):