mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-01 23:21:40 +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 {
|
||||
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.emit("change");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user