summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-11-04 23:49:57 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-11-04 23:49:57 +0000
commit08919847c1e80c3d8a3bae2483980e2909083664 (patch)
tree7528031afbb02b51a8e4ec1834b3c09e3ac5ec30
parentpull in profile_handler correctly (diff)
downloadsynapse-08919847c1e80c3d8a3bae2483980e2909083664.tar.xz
fix sense of 'hide'
-rw-r--r--synapse/storage/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py
index 3f6b64c40d..a8fbc604b6 100644
--- a/synapse/storage/profile.py
+++ b/synapse/storage/profile.py
@@ -152,7 +152,7 @@ class ProfileWorkerStore(SQLBaseStore):
             "active": int(active),
             "batch": batchnum,
         }
-        if not active and hide:
+        if not active and not hide:
             values["avatar_url"] = None
             values["displayname"] = None
         return self._simple_upsert(