0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 10:23:53 +01:00

Oops, we need to use defer.returnValue.

This commit is contained in:
Erik Johnston 2014-08-22 18:23:02 +01:00
parent 5b058a79cb
commit cda4ff8519

View file

@ -142,7 +142,8 @@ class PresenceHandler(BaseHandler):
@defer.inlineCallbacks
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.
assert(observed_user.is_mine)