mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
using isJidGroup
This commit is contained in:
committed by
Adhiraj Singh
parent
a6a2cd9def
commit
8805d75afc
@@ -621,7 +621,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
// required for delete
|
||||
if(isDeleteMsg) {
|
||||
// if the chat is a group, and I am not the author, then delete the message as an admin
|
||||
if(content.delete?.remoteJid?.endsWith('@g.us') && !content.delete?.fromMe) {
|
||||
if(isJidGroup(content.delete?.remoteJid) && !content.delete?.fromMe) {
|
||||
additionalAttributes.edit = '8'
|
||||
} else {
|
||||
additionalAttributes.edit = '7'
|
||||
|
||||
Reference in New Issue
Block a user