This commit is contained in:
Rajeh Taher
2022-08-02 15:57:59 +03:00
committed by Adhiraj Singh
parent 8805d75afc
commit 99517d046f

View File

@@ -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(isJidGroup(content.delete?.remoteJid) && !content.delete?.fromMe) {
if(isJidGroup(content.delete?.remoteJid as string) && !content.delete?.fromMe) {
additionalAttributes.edit = '8'
} else {
additionalAttributes.edit = '7'