mirror of
https://mau.dev/maunium/synapse.git
synced 2025-03-05 12:10:22 +01:00
Oops, we need to use defer.returnValue.
This commit is contained in:
parent
5b058a79cb
commit
cda4ff8519
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ 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)
|
defer.returnValue(True)
|
||||||
|
return
|
||||||
# FIXME (erikj): This code path absolutely kills the database.
|
# FIXME (erikj): This code path absolutely kills the database.
|
||||||
|
|
||||||
assert(observed_user.is_mine)
|
assert(observed_user.is_mine)
|
||||||
|
|
Loading…
Add table
Reference in a new issue