mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
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:
parent
61e28cdb6f
commit
32fdf8efd6
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user