Browse Source

Update GroupList.js

I reproduced a bug that localy.
On my device, The groups JID's are LID's.
I saw that PhoneNumber has the right data that matches.

Signed-off-by: ilanbenb <12747039+ilanbenb@users.noreply.github.com>
pull/308/head
ilanbenb 8 months ago
committed by GitHub
parent
commit
4a7f467b06
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/views/components/GroupList.js

4
src/views/components/GroupList.js

@ -89,7 +89,7 @@ export default {
// Check if current user is an admin in participants
const currentUserJID = `${this.currentUserId}@s.whatsapp.net`;
const participant = group.Participants.find(p => p.JID === currentUserJID);
const participant = group.Participants.find(p => p.PhoneNumber === currentUserJID);
return participant && participant.IsAdmin;
},
async handleSeeRequestedMember(group_id) {
@ -250,4 +250,4 @@ export default {
</div>
</div>
`
}
}
Loading…
Cancel
Save