From 08919847c1e80c3d8a3bae2483980e2909083664 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 4 Nov 2018 23:49:57 +0000 Subject: [PATCH] fix sense of 'hide' --- synapse/storage/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(