MediaSFU React Native (Expo)
    Preparing search index...

    Variable messageParticipantsConst

    messageParticipants: (
        { coHostResponsibility, participant, member, islevel, showAlert, coHost, updateIsMessagesModalVisible, updateDirectMessageDetails, updateStartDirectMessage, }: MessageParticipantsOptions,
    ) => void

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

    Type Declaration

      • (
            { coHostResponsibility, participant, member, islevel, showAlert, coHost, updateIsMessagesModalVisible, updateDirectMessageDetails, updateStartDirectMessage, }: MessageParticipantsOptions,
        ): void
      • Parameters

        • { coHostResponsibility, participant, member, islevel, showAlert, coHost, updateIsMessagesModalVisible, updateDirectMessageDetails, updateStartDirectMessage, }: MessageParticipantsOptions

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