mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-02-05 06:46:27 -06:00
Fix update message condition
This commit is contained in:
@@ -1281,8 +1281,6 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (status[update.status] === 'READ' && !key.fromMe) return;
|
|
||||||
|
|
||||||
if (update.message === null && update.status === undefined) {
|
if (update.message === null && update.status === undefined) {
|
||||||
this.sendDataWebhook(Events.MESSAGES_DELETE, key);
|
this.sendDataWebhook(Events.MESSAGES_DELETE, key);
|
||||||
|
|
||||||
@@ -1310,8 +1308,8 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else if (update.message !== undefined && update.message !== findMessage.status) {
|
} else if (update.status !== undefined && status[update.status] !== findMessage.status) {
|
||||||
if (unreadChatToUpdate[key.remoteJid!] === undefined) {
|
if (!unreadChatToUpdate[key.remoteJid!]) {
|
||||||
unreadChatToUpdate[key.remoteJid!] = 0;
|
unreadChatToUpdate[key.remoteJid!] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user