From 51d13fd8d262f8d915e05ae55741290557dfda60 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 11 May 2021 13:07:57 +0200 Subject: [PATCH] update comments for Invite updates --- src/matrix/room/Invite.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/room/Invite.js b/src/matrix/room/Invite.js index d0476cb3..55dc9742 100644 --- a/src/matrix/room/Invite.js +++ b/src/matrix/room/Invite.js @@ -165,10 +165,9 @@ export class Invite extends EventEmitter { } this.emit("change"); } else { + // no emit change, adding to the collection is done by sync this._inviteData = changes.inviteData; this._inviter = changes.inviter; - // sync will add the invite to the collection by - // calling session.addInviteAfterSync } } }