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 {
|
} 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…
Reference in a new issue