fix sense of 'hide'

This commit is contained in:
Matthew Hodgson 2018-11-04 23:49:57 +00:00
parent c3acc45a87
commit 08919847c1

View file

@ -152,7 +152,7 @@ class ProfileWorkerStore(SQLBaseStore):
"active": int(active), "active": int(active),
"batch": batchnum, "batch": batchnum,
} }
if not active and hide: if not active and not hide:
values["avatar_url"] = None values["avatar_url"] = None
values["displayname"] = None values["displayname"] = None
return self._simple_upsert( return self._simple_upsert(