|
|
|
|
@ -277,16 +277,13 @@ const createWhatsApp = async phone => {
|
|
|
|
|
|
|
|
|
|
// 没有类型的消息,先忽略
|
|
|
|
|
if (!msg.message) {
|
|
|
|
|
console.info('!msg.message, ignored.');
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isJidStatusBroadcast(msg.key.remoteJid)) {
|
|
|
|
|
console.info('isJidStatusBroadcast, ignored.');
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (isJidNewsletter(msg.key.remoteJid)) {
|
|
|
|
|
console.info('isJidNewsletter, ignored.');
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -342,7 +339,6 @@ const createWhatsApp = async phone => {
|
|
|
|
|
).then(msg => {
|
|
|
|
|
externalIdCache.set(msg.key.id, externalId)
|
|
|
|
|
}).catch(ex => {
|
|
|
|
|
console.info('sendMessageHandler.catch: ', ex)
|
|
|
|
|
waEmitter.emit('message:updated', {
|
|
|
|
|
id: generateId(),
|
|
|
|
|
externalId,
|
|
|
|
|
|