diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-12-12 00:57:39 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-12-12 00:57:39 +0000 |
commit | 82886e4c8f0a639dba38ba91b625bee12b8c2357 (patch) | |
tree | b52a3d676e86bcdf3de81826d31f756d7521b946 /synapse/rest | |
parent | fix sense of 'hide' (diff) | |
download | synapse-82886e4c8f0a639dba38ba91b625bee12b8c2357.tar.xz |
hide_profile: false should mean not to hide the profile :/ github/matthew/red_list matthew/red_list
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v2_alpha/account_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account_data.py b/synapse/rest/client/v2_alpha/account_data.py index f4cab67560..21c734e525 100644 --- a/synapse/rest/client/v2_alpha/account_data.py +++ b/synapse/rest/client/v2_alpha/account_data.py @@ -52,7 +52,7 @@ class AccountDataServlet(RestServlet): if account_data_type == "im.vector.hide_profile": user = UserID.from_string(user_id) hide_profile = body.get('hide_profile') - yield self._profile_handler.set_active(user, hide_profile, True) + yield self._profile_handler.set_active(user, not hide_profile, True) max_id = yield self.store.add_account_data_for_user( user_id, account_data_type, body |