MediaSFU React Native
    Preparing search index...

    Function messageParticipants

    • Sends a direct message to a participant if the current member has the necessary permissions.

      Parameters

      • options: MessageParticipantsOptions

        The options for messaging participants.

        • coHostResponsibility: CoHostResponsibility[]
        • participant: Participant
        • member: string
        • islevel: string
        • OptionalshowAlert?: ShowAlert
        • coHost: string
        • updateIsMessagesModalVisible: (isVisible: boolean) => void
        • updateDirectMessageDetails: (participant: Participant) => void
        • updateStartDirectMessage: (start: boolean) => void

      Returns void

      messageParticipants({
      coHostResponsibility: [{ name: "chat", value: true }],
      participant: { name: "John Doe", islevel: "1" },
      member: "currentMember",
      islevel: "2",
      showAlert: (alert) => console.log(alert.message),
      coHost: "coHostMember",
      updateIsMessagesModalVisible: (isVisible) => setMessagesModalVisible(isVisible),
      updateDirectMessageDetails: (participant) => setDirectMessageDetails(participant),
      updateStartDirectMessage: (start) => setStartDirectMessage(start),
      });