In Flutter's Sendbird Chat SDK version 4.1.2, the Poll.votedPollOptionIds consistently returns an empty list

Hello everyone. I am currently utilizing the following code to process poll votes:

final pollVoteEvent = await widget.channel.votePoll(
pollId: widget.poll.id,
pollOptionIds: _selectedOptionIds,
);

final params = MessageRetrievalParams(
channelType: ChannelType.group,
channelUrl: widget.channel.channelUrl,
messageId: pollVoteEvent.messageId
);

final message = await BaseMessage.getMessage(params) as UserMessage;
message.poll!.applyPollVoteEvent(pollVoteEvent);

Although the votes are being tallied correctly, the votedPollOptionIds list, which is expected to display the user’s selected options, consistently returns empty. I am using the Sendbird Chat SDK version 4.1.2 for this implementation.

1 Like