You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
pass a presence event
This commit is contained in:
@@ -3709,7 +3709,7 @@ MatrixClient.prototype.setDisplayName = async function(name, callback) {
|
|||||||
const user = this.getUser(this.getUserId());
|
const user = this.getUser(this.getUserId());
|
||||||
if (user) {
|
if (user) {
|
||||||
user.displayName = name;
|
user.displayName = name;
|
||||||
user.emit("User.displayName", null, user);
|
user.emit("User.displayName", user.events.presence, user);
|
||||||
}
|
}
|
||||||
return prom;
|
return prom;
|
||||||
};
|
};
|
||||||
@@ -3727,7 +3727,7 @@ MatrixClient.prototype.setAvatarUrl = async function(url, callback) {
|
|||||||
const user = this.getUser(this.getUserId());
|
const user = this.getUser(this.getUserId());
|
||||||
if (user) {
|
if (user) {
|
||||||
user.avatarUrl = url;
|
user.avatarUrl = url;
|
||||||
user.emit("User.avatarUrl", null, user);
|
user.emit("User.avatarUrl", user.events.presence, user);
|
||||||
}
|
}
|
||||||
return prom;
|
return prom;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user