Fix session deletion bug on reconnect limit
This commit is contained in:
@@ -119,9 +119,9 @@ async function startSession(session_key, webhook_url) {
|
||||
|
||||
// Extract text body
|
||||
const body = msg.message?.conversation ||
|
||||
msg.message?.extendedTextMessage?.text ||
|
||||
msg.message?.imageMessage?.caption ||
|
||||
msg.message?.videoMessage?.caption || '';
|
||||
msg.message?.extendedTextMessage?.text ||
|
||||
msg.message?.imageMessage?.caption ||
|
||||
msg.message?.videoMessage?.caption || '';
|
||||
|
||||
const isAudio = !!msg.message?.audioMessage;
|
||||
const isImage = !!msg.message?.imageMessage;
|
||||
@@ -180,6 +180,7 @@ async function startSession(session_key, webhook_url) {
|
||||
senderPhone = remoteJid.split('@')[0];
|
||||
} else if (remoteJid.endsWith('@lid')) {
|
||||
senderPhone = remoteJid.split('@')[0];
|
||||
senderPhone = remoteJid.split('@')[0];
|
||||
}
|
||||
|
||||
if (!senderPhone) continue;
|
||||
|
||||
Reference in New Issue
Block a user