Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

feat: Group admin has LID in the JID field. Use PhoneNumber instead (#308)

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