Skip to content
Snippets Groups Projects
Verified Commit 33d51d0d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix displayname endpoint

parent d451fbfb
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ class Matrix:
def set_displayname(self, nick):
"""Set the account's display name."""
endpoint = "/profile/%s/displayname"
endpoint = "/r0/profile/%s/displayname" % (self.matrix_id,)
content = {"displayname": nick}
self._put(endpoint, json_data=content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment