Skip to content

Commit

Permalink
fix: Fixed WPP.chat.sendCreatePollMessage function
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Oct 13, 2022
1 parent f6f3c9f commit b688d95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chat/functions/sendCreatePollMessage.ts
Expand Up @@ -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);
Expand Down

0 comments on commit b688d95

Please sign in to comment.