[core] NOWEB - handle no content found messages: TypeError: Cannot read properties of undefined (reading 'pollUpdateMessage')

This commit is contained in:
devlikepro committed 2025-05-28 16:41:58 +07:00
1 parent 19b752bf15
commit 27e4ce628e
1 file changed
+1 -1
+1 -1
View File
@@ -616,7 +616,7 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
}
for (const message of messages) {
const content = normalizeMessageContent(message.message);
if (!content.pollUpdateMessage) {
if (!content?.pollUpdateMessage) {
continue;
}
const creationMsgKey = content.pollUpdateMessage.pollCreationMessageKey;