mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: better error for recipient error
This commit is contained in:
@@ -24,7 +24,7 @@ export const decodeMessageStanza = (stanza: BinaryNode, auth: AuthenticationStat
|
|||||||
if(isJidUser(from)) {
|
if(isJidUser(from)) {
|
||||||
if(recipient) {
|
if(recipient) {
|
||||||
if(!isMe(from)) {
|
if(!isMe(from)) {
|
||||||
throw new Boom('')
|
throw new Boom('receipient present, but msg not from me', { data: stanza })
|
||||||
}
|
}
|
||||||
|
|
||||||
chatId = recipient
|
chatId = recipient
|
||||||
|
|||||||
Reference in New Issue
Block a user