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 2014-09-01 22:14:03 +01:00
parent 61e28cdb6f
commit 32fdf8efd6
1 changed files with 0 additions and 4 deletions

View File

@ -488,10 +488,6 @@ class PresenceHandler(BaseHandler):
def _start_polling_local(self, user, target_user): def _start_polling_local(self, user, target_user):
target_localpart = target_user.localpart 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: if target_localpart not in self._local_pushmap:
self._local_pushmap[target_localpart] = set() self._local_pushmap[target_localpart] = set()