forked from mystiq/hydrogen-web
add note collection emit should happen first in Invite
This commit is contained in:
parent
a5e6294593
commit
ad5d7fc9f0
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue