From e20e479d74db2491f20da346a3e67abe3a55ef6a Mon Sep 17 00:00:00 2001 From: LightningNeko <80431773+LightningNeko@users.noreply.github.com> Date: Sat, 4 Dec 2021 17:17:14 -0300 Subject: [PATCH] fix waiting for this message (#966) --- src/Socket/messages-send.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index 61e7abb..19befed 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -266,8 +266,8 @@ export const makeMessagesSocket = (config: SocketConfig) => { if(!participant) { const participantsList = groupData.participants.map(p => p.id) - const devices = await getUSyncDevices(participantsList, false) - devices.push(...devices) + const additionalDevices = await getUSyncDevices(participantsList, false) + devices.push(...additionalDevices) } const encSenderKeyMsg = encodeWAMessage({