chore: better error for recipient error

This commit is contained in:
Adhiraj Singh
2022-06-15 15:05:58 +05:30
parent 442489faae
commit f44335db8d

View File

@@ -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