Don't set avatar and display name if they haven't changed.
Related to issue #40.
This commit is contained in:
parent
8555436bc7
commit
bdd6977728
7 changed files with 94 additions and 33 deletions
|
|
@ -405,7 +405,7 @@ class Util {
|
|||
matrixClient.uploadContent(response.data, opts)
|
||||
.then((response) => {
|
||||
const uri = response.content_uri;
|
||||
return matrixClient.setProfileInfo('avatar_url', { avatar_url: uri });
|
||||
return matrixClient.setAvatarUrl(uri);
|
||||
})
|
||||
.then(result => {
|
||||
resolve(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue