From f44335db8d4ba6ffd73e8ce512863530ca6dff1e Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Wed, 15 Jun 2022 15:05:58 +0530 Subject: [PATCH] chore: better error for recipient error --- src/Utils/decode-wa-message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/decode-wa-message.ts b/src/Utils/decode-wa-message.ts index eaf7ea1..9bef5f7 100644 --- a/src/Utils/decode-wa-message.ts +++ b/src/Utils/decode-wa-message.ts @@ -24,7 +24,7 @@ export const decodeMessageStanza = (stanza: BinaryNode, auth: AuthenticationStat if(isJidUser(from)) { if(recipient) { if(!isMe(from)) { - throw new Boom('') + throw new Boom('receipient present, but msg not from me', { data: stanza }) } chatId = recipient