diff --git a/src/views/components/GroupList.js b/src/views/components/GroupList.js index 5cb9969..e37a31f 100644 --- a/src/views/components/GroupList.js +++ b/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 { ` -} \ No newline at end of file +}