1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

pass args

This commit is contained in:
Michael Telatynski
2020-11-02 17:29:14 +00:00
parent 5bbc5cad9f
commit 7de0ca2048

View File

@@ -3709,7 +3709,7 @@ MatrixClient.prototype.setDisplayName = async function(name, callback) {
const user = this.getUser(this.getUserId());
if (user) {
user.displayName = name;
user.emit("User.displayName");
user.emit("User.displayName", null, user);
}
return prom;
};
@@ -3727,7 +3727,7 @@ MatrixClient.prototype.setAvatarUrl = async function(url, callback) {
const user = this.getUser(this.getUserId());
if (user) {
user.avatarUrl = url;
user.emit("User.avatarUrl");
user.emit("User.avatarUrl", null, user);
}
return prom;
};