forked from mystiq/hydrogen-web
some cleanup
This commit is contained in:
parent
fdf097dc89
commit
53720f56df
1 changed files with 2 additions and 3 deletions
|
@ -50,14 +50,13 @@ function processEvent(data, event) {
|
|||
data = data.cloneIfNeeded();
|
||||
data.isEncrypted = true;
|
||||
}
|
||||
}
|
||||
if (event.type === "m.room.name") {
|
||||
} else if (event.type === "m.room.name") {
|
||||
const newName = event.content?.name;
|
||||
if (newName !== data.name) {
|
||||
data = data.cloneIfNeeded();
|
||||
data.name = newName;
|
||||
}
|
||||
} if (event.type === "m.room.avatar") {
|
||||
} else if (event.type === "m.room.avatar") {
|
||||
const newUrl = event.content?.url;
|
||||
if (newUrl !== data.avatarUrl) {
|
||||
data = data.cloneIfNeeded();
|
||||
|
|
Loading…
Reference in a new issue