Feat: Modified number action in group-participants.update (#858)

* Update GroupMetadata.ts

* Update messages-recv.ts

* Update process-message.ts
This commit is contained in:
Bob
2024-07-03 04:34:06 -03:00
committed by GitHub
parent c576e9215c
commit baf8b3df00
3 changed files with 10 additions and 1 deletions

View File

@@ -308,6 +308,10 @@ const processMessage = async(
const participantsIncludesMe = () => participants.find(jid => areJidsSameUser(meId, jid))
switch (message.messageStubType) {
case WAMessageStubType.GROUP_PARTICIPANT_CHANGE_NUMBER:
participants = message.messageStubParameters || []
emitParticipantsUpdate('modify')
break
case WAMessageStubType.GROUP_PARTICIPANT_LEAVE:
case WAMessageStubType.GROUP_PARTICIPANT_REMOVE:
participants = message.messageStubParameters || []