diff --git a/matrix_client/api.py b/matrix_client/api.py index 6d5f6f40..cd9bec4b 100644 --- a/matrix_client/api.py +++ b/matrix_client/api.py @@ -673,7 +673,7 @@ def get_display_name(self, user_id): def set_display_name(self, user_id, display_name): content = {"displayname": display_name} - self._send("PUT", "/profile/%s/displayname" % user_id, content) + return self._send("PUT", "/profile/%s/displayname" % user_id, content) def get_avatar_url(self, user_id): content = self._send("GET", "/profile/%s/avatar_url" % user_id) @@ -681,7 +681,7 @@ def get_avatar_url(self, user_id): def set_avatar_url(self, user_id, avatar_url): content = {"avatar_url": avatar_url} - self._send("PUT", "/profile/%s/avatar_url" % user_id, content) + return self._send("PUT", "/profile/%s/avatar_url" % user_id, content) def get_download_url(self, mxcurl): if mxcurl.startswith('mxc://'):