mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +01:00
add note collection emit should happen first in Invite
This commit is contained in:
parent
a5e6294593
commit
ad5d7fc9f0
@ -149,6 +149,9 @@ export class Invite extends EventEmitter {
|
|||||||
} else {
|
} else {
|
||||||
this._rejected = true;
|
this._rejected = true;
|
||||||
}
|
}
|
||||||
|
// important to remove before emitting change
|
||||||
|
// so code checking session.invites.get(id) won't
|
||||||
|
// find the invite anymore on update
|
||||||
this._emitCollectionRemove(this);
|
this._emitCollectionRemove(this);
|
||||||
this.emit("change");
|
this.emit("change");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user