summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-01 22:14:03 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-01 22:15:02 +0100
commit32fdf8efd69867e9356755e77c3ccc867b5031f6 (patch)
tree56d511c05b13081d69a7a4a86a236cb94fc2105f /synapse/handlers
parentspecify metavars in argparse (diff)
downloadsynapse-32fdf8efd69867e9356755e77c3ccc867b5031f6.tar.xz
No need to test is_presence_visible in _start_polling_local because we know it will be by when it's called
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index f55bea58a5..ff04be1460 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -488,10 +488,6 @@ class PresenceHandler(BaseHandler):
     def _start_polling_local(self, user, target_user):
         target_localpart = target_user.localpart
 
-        if not self.is_presence_visible(observer_user=user,
-            observed_user=target_user):
-            return
-
         if target_localpart not in self._local_pushmap:
             self._local_pushmap[target_localpart] = set()