Reconciles poll update payloads with current poll state.
This helper updates the poll collection, manages active poll visibility, and emits user-facing alerts when a new poll starts or an active poll ends.
Poll update handling options.
A promise that resolves after local poll state has been synchronized.
await pollUpdated({ data, polls, poll, member: 'Ada', islevel: '1', updatePolls: setPolls, updatePoll: setCurrentPoll, updateIsPollModalVisible: setPollModalVisible,}); Copy
await pollUpdated({ data, polls, poll, member: 'Ada', islevel: '1', updatePolls: setPolls, updatePoll: setCurrentPoll, updateIsPollModalVisible: setPollModalVisible,});
Reconciles poll update payloads with current poll state.
This helper updates the poll collection, manages active poll visibility, and emits user-facing alerts when a new poll starts or an active poll ends.