From b688d957a13d0a56311649d55ffd042fc6f3bea3 Mon Sep 17 00:00:00 2001 From: Edgard Date: Thu, 13 Oct 2022 18:51:15 -0300 Subject: [PATCH] fix: Fixed WPP.chat.sendCreatePollMessage function --- src/chat/functions/sendCreatePollMessage.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chat/functions/sendCreatePollMessage.ts b/src/chat/functions/sendCreatePollMessage.ts index 36d0aa4834..feffb13c56 100644 --- a/src/chat/functions/sendCreatePollMessage.ts +++ b/src/chat/functions/sendCreatePollMessage.ts @@ -72,6 +72,7 @@ export async function sendCreatePollMessage( pollOptions: choices.map((name, localId) => ({ name, localId })), pollEncKey: self.crypto.getRandomValues(new Uint8Array(32)), pollSelectableOptionsCount: options.selectableCount || 0, + messageSecret: self.crypto.getRandomValues(new Uint8Array(32)), }; return await sendRawMessage(chatId, rawMessage, options);