Don't set avatar and display name if they haven't changed.

Related to issue #40.
This commit is contained in:
N-Pex 2021-01-29 21:41:43 +01:00
parent 8555436bc7
commit bdd6977728
7 changed files with 94 additions and 33 deletions

View file

@ -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);