mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
don't recreate the reactions after clearing it with the last one removed
This commit is contained in:
parent
cc444fa207
commit
1385a22e60
@ -143,19 +143,12 @@ export class BaseMessageTile extends SimpleTile {
|
||||
if (!annotations) {
|
||||
if (this._reactions) {
|
||||
this._reactions = null;
|
||||
this.emitChange("reactions");
|
||||
}
|
||||
}
|
||||
let isNewMap = false;
|
||||
} else {
|
||||
if (!this._reactions) {
|
||||
this._reactions = new ReactionsViewModel(this);
|
||||
isNewMap = true;
|
||||
}
|
||||
|
||||
this._reactions.update(annotations);
|
||||
|
||||
if (isNewMap) {
|
||||
this.emitChange("reactions");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user