MediaSFU React Native
    Preparing search index...

    Function pollUpdated

    • Updates the poll state based on the provided data.

      Parameters

      Returns Promise<void>

      A promise that resolves when the poll update is complete.

      await pollUpdated({
      data: { poll: updatedPoll, status: "started" },
      polls: currentPolls,
      poll: currentPoll,
      member: "user123",
      islevel: "1",
      showAlert: (alert) => console.log(alert.message),
      updatePolls: (polls) => setPolls(polls),
      updatePoll: (poll) => setCurrentPoll(poll),
      updateIsPollModalVisible: (visible) => setIsPollModalVisible(visible),
      });