mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-17 21:43:55 +01:00
Comment
This commit is contained in:
parent
c229c87398
commit
58371fa263
1 changed files with 2 additions and 0 deletions
|
@ -775,6 +775,8 @@ class PresenceHandler(BaseHandler):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def is_visible(self, observed_user, observer_user):
|
def is_visible(self, observed_user, observer_user):
|
||||||
|
"""Returns whether a user can see another user's presence.
|
||||||
|
"""
|
||||||
observer_rooms = yield self.store.get_rooms_for_user(observer_user.to_string())
|
observer_rooms = yield self.store.get_rooms_for_user(observer_user.to_string())
|
||||||
observed_rooms = yield self.store.get_rooms_for_user(observed_user.to_string())
|
observed_rooms = yield self.store.get_rooms_for_user(observed_user.to_string())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue