From 32fdf8efd69867e9356755e77c3ccc867b5031f6 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Mon, 1 Sep 2014 22:14:03 +0100 Subject: [PATCH] No need to test is_presence_visible in _start_polling_local because we know it will be by when it's called --- synapse/handlers/presence.py | 4 ---- 1 file changed, 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()