Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always return from _send even if it's irrelevant #167

Merged
merged 1 commit into from
Jan 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions matrix_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,15 +673,15 @@ 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)
return content.get('avatar_url', None)

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://'):
Expand Down