mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix processMessage unexpected error (#1401)
This commit is contained in:
committed by
GitHub
parent
9fee7faaf6
commit
f773a32da8
@@ -146,7 +146,7 @@ const makeMessagesSocket = (config: LegacySocketConfig) => {
|
||||
const normalizedContent = normalizeMessageContent(message.message)
|
||||
const protocolMessage = normalizedContent?.protocolMessage
|
||||
|
||||
if(normalizedContent.reactionMessage) {
|
||||
if(normalizedContent?.reactionMessage) {
|
||||
const reaction: proto.IReaction = {
|
||||
...normalizedContent.reactionMessage,
|
||||
key: message.key,
|
||||
|
||||
@@ -203,7 +203,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
chatUpdate.ephemeralExpiration = protocolMsg.ephemeralExpiration || null
|
||||
break
|
||||
}
|
||||
} else if(content.reactionMessage) {
|
||||
} else if(content?.reactionMessage) {
|
||||
const reaction: proto.IReaction = {
|
||||
...content.reactionMessage,
|
||||
key: message.key,
|
||||
|
||||
Reference in New Issue
Block a user