summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-22 18:21:21 +0100
committerErik Johnston <erik@matrix.org>2014-08-22 18:21:21 +0100
commit5b058a79cbe4ba0e8d35a52aa79693fe5a074537 (patch)
tree0e28979bcb9758c6f88ed4b8082e8bab843624dd
parentTurn off more spammy logging. (diff)
downloadsynapse-5b058a79cbe4ba0e8d35a52aa79693fe5a074537.tar.xz
Make is_presence_visible always return true as it was thrashing the database.
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 4ce77cbff1..bccb24a109 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -142,6 +142,9 @@ class PresenceHandler(BaseHandler):
 
     @defer.inlineCallbacks
     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)
 
         if observer_user == observed_user: