forked from MirrorHub/synapse
Make is_presence_visible always return true as it was thrashing the database.
This commit is contained in:
parent
b18db63c06
commit
5b058a79cb
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ class PresenceHandler(BaseHandler):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def is_presence_visible(self, observer_user, observed_user):
|
def is_presence_visible(self, observer_user, observed_user):
|
||||||
|
return defer.succeed(True)
|
||||||
|
# FIXME (erikj): This code path absolutely kills the database.
|
||||||
|
|
||||||
assert(observed_user.is_mine)
|
assert(observed_user.is_mine)
|
||||||
|
|
||||||
if observer_user == observed_user:
|
if observer_user == observed_user:
|
||||||
|
|
Loading…
Reference in a new issue