summary refs log tree commit diff
path: root/synapse/push/pusherpool.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-21 10:19:15 +0000
committerErik Johnston <erik@matrix.org>2016-01-21 10:19:15 +0000
commitd54005059c07456f6c2a72f9359fe8c97ceaeb34 (patch)
treef388d2b5ecd0ba1eb9aceffae3c686d5d64c9472 /synapse/push/pusherpool.py
parentAdd another graph contrib (diff)
parentMerge pull request #507 from matrix-org/push_badge_counts (diff)
downloadsynapse-d54005059c07456f6c2a72f9359fe8c97ceaeb34.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into develop
Diffstat (limited to '')
-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 12c4af14bd..d1b7c0802f 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_id = 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_id == user_id:
-                yield p.presence_changed(state)
-
     @defer.inlineCallbacks
     def start(self):
         pushers = yield self.store.get_all_pushers()