1
0
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:
Michael Telatynski
2020-11-02 17:39:25 +00:00
parent 7de0ca2048
commit 66aa9c4831

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", null, user);
user.emit("User.displayName", user.events.presence, 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", null, user);
user.emit("User.avatarUrl", user.events.presence, user);
}
return prom;
};