update comments for Invite updates

This commit is contained in:
Bruno Windels 2021-05-11 13:07:57 +02:00
parent 6bb9140720
commit 51d13fd8d2

View file

@ -165,10 +165,9 @@ export class Invite extends EventEmitter {
} }
this.emit("change"); this.emit("change");
} else { } else {
// no emit change, adding to the collection is done by sync
this._inviteData = changes.inviteData; this._inviteData = changes.inviteData;
this._inviter = changes.inviter; this._inviter = changes.inviter;
// sync will add the invite to the collection by
// calling session.addInviteAfterSync
} }
} }
} }