summary refs log tree commit diff
path: root/synapse/push/pusherpool.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-13 18:55:57 +0000
committerDavid Baker <dave@matrix.org>2016-01-13 18:55:57 +0000
commit12623c99b6489e1ceefdc89341fa524b1215665d (patch)
treead502a2b2ee13ae76bc5d21ca09881416f35fd89 /synapse/push/pusherpool.py
parentMerge pull request #482 from matrix-org/markjh/table_name (diff)
downloadsynapse-12623c99b6489e1ceefdc89341fa524b1215665d.tar.xz
Use the unread notification count to send accurate badge counts in push notifications.
Diffstat (limited to 'synapse/push/pusherpool.py')
-rw-r--r--synapse/push/pusherpool.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/push/pusherpool.py b/synapse/push/pusherpool.py
index 4208e5c76c..5d1179abf6 100644
--- a/synapse/push/pusherpool.py
+++ b/synapse/push/pusherpool.py
@@ -31,21 +31,6 @@ class PusherPool:
         self.pushers = {}
         self.last_pusher_started = -1
 
-        distributor = self.hs.get_distributor()
-        distributor.observe(
-            "user_presence_changed", self.user_presence_changed
-        )
-
-    @defer.inlineCallbacks
-    def user_presence_changed(self, user, state):
-        user_name = user.to_string()
-
-        # until we have read receipts, pushers use this to reset a user's
-        # badge counters to zero
-        for p in self.pushers.values():
-            if p.user_name == user_name:
-                yield p.presence_changed(state)
-
     @defer.inlineCallbacks
     def start(self):
         pushers = yield self.store.get_all_pushers()