diff --git a/src/group/events/registerParticipantsChangedEvent.ts b/src/group/events/registerParticipantsChangedEvent.ts index c38e98c17d..010930a417 100644 --- a/src/group/events/registerParticipantsChangedEvent.ts +++ b/src/group/events/registerParticipantsChangedEvent.ts @@ -38,7 +38,10 @@ function register() { return p; }); - if (actionType === 'add' && action.isInvite) { + if ( + actionType === 'add' && + (action.isInvite || action.reason === 'invite') + ) { actionType = 'join'; } else if ( actionType === 'remove' && diff --git a/src/whatsapp/functions/updateDBForGroupAction.ts b/src/whatsapp/functions/updateDBForGroupAction.ts index 190e44cd8c..61b21daeb3 100644 --- a/src/whatsapp/functions/updateDBForGroupAction.ts +++ b/src/whatsapp/functions/updateDBForGroupAction.ts @@ -29,6 +29,7 @@ export interface GroupActionParticipant { export interface GroupActionChange { action: string; actionType: string; // @whatsapp >= 2.2224.6 + isLidAddressingMode?: boolean; isInvite?: boolean; isLinkedGroupJoin?: boolean; /** @@ -36,6 +37,7 @@ export interface GroupActionChange { */ participants: Wid[] | GroupActionParticipant[]; prevVersion: number; + reason: string; version: number; }