diff --git a/src/Utils/messages.ts b/src/Utils/messages.ts index 3de8edc..49e1835 100644 --- a/src/Utils/messages.ts +++ b/src/Utils/messages.ts @@ -748,7 +748,7 @@ export function getAggregateVotesInPollMessage( { message, pollUpdates }: Pick, meId?: string ) { - const opts = message?.pollCreationMessage?.options || [] + const opts = message?.pollCreationMessage?.options || message?.pollCreationMessageV2?.options || message?.pollCreationMessageV3?.options || [] const voteHashMap = opts.reduce((acc, opt) => { const hash = sha256(Buffer.from(opt.optionName || '')).toString() acc[hash] = {