From ac17225cf34fbfd8803d5873acbafac29c4e5975 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Wed, 20 Apr 2022 13:20:05 +0530 Subject: [PATCH] fix: use correct ID for retry recp --- src/Socket/messages-recv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 7aa0d60..808b497 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -366,7 +366,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { } if(attrs.type === 'retry') { - if(willSendMessageAgain(key.id)) { + if(willSendMessageAgain(ids[0])) { // correctly set who is asking for the retry key.participant = key.participant || attrs.from if(key.fromMe) {