No need to test is_presence_visible in _start_polling_local because we know it will be by when it's called

This commit is contained in:
Paul "LeoNerd" Evans committed 2014-09-01 22:15:02 +01:00
1 parent 61e28cdb6f
commit 32fdf8efd6
1 file changed
-4
-4
View File
@@ -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()