MediaSFU Shared
    Preparing search index...

    Function pollUpdated

    • 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.

      Parameters

      Returns Promise<void>

      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,
      });