add note collection emit should happen first in Invite

This commit is contained in:
Bruno Windels 2021-04-21 15:32:37 +02:00
parent a5e6294593
commit ad5d7fc9f0

View file

@ -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 {