Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

5.6 KB
Raw Blame
/**
 * The type of the action which signals to add a new chat message.
 *
 * {
 *     type: ADD_MESSAGE,
 *     displayName: string
 *     hasRead: boolean,
 *     id: string,
 *     messageType: ChatMessageType,
 *     message: string,
 *     timestamp: string,
 * }
 */
export const ADD_MESSAGE = 'ADD_MESSAGE';

/**
 * The type of the action that adds a reaction to a chat message.
 *
 * {
 *     type: ADD_MESSAGE_REACTION,
 *     reaction: string,
 *     messageID: string,
 *     receiverID: string,
 * }
 */
export const ADD_MESSAGE_REACTION = 'ADD_MESSAGE_REACTION';

/**
 * The type of action which clears the chat search state.
 *
 * {
 *     type: CLEAR_CHAT_SEARCH
 * }
 */
export const CLEAR_CHAT_SEARCH = 'CLEAR_CHAT_SEARCH';

/**
 * The type of the action which signals to clear Redux.
 *
 * {
 *     type: CLEAR_CHAT_STATE
 * }
 */
export const CLEAR_CHAT_STATE = 'CLEAR_CHAT_STATE';

/**
 * The type of the action which signals the cancellation the chat panel.
 *
 * {
 *     type: CLOSE_CHAT
 * }
 */
export const CLOSE_CHAT = 'CLOSE_CHAT';

/**
 * The type of the action which signals to edit chat message.
 *
 * {
 *     type: EDIT_MESSAGE,
 *     message: Object
 * }
 */
export const EDIT_MESSAGE = 'EDIT_MESSAGE';

/**
 * The type of the action which signals to moderate a message
 *
 * {
 *     type: MODERATE_MESSAGE,
 *     messageId: string,
 *     reason: string
 * }
 */
export const MODERATE_MESSAGE = 'MODERATE_MESSAGE';

/**
 * The type of the action which signals to display the chat panel.
 *
 * {
 *     type: OPEN_CHAT
 * }
 */
export const OPEN_CHAT = 'OPEN_CHAT';

/**
 * The type of the action which signals a send a chat message to everyone in the
 * conference.
 *
 * {
 *     type: SEND_MESSAGE,
 *     ignorePrivacy: boolean,
 *     message: string
 * }
 */
export const SEND_MESSAGE = 'SEND_MESSAGE';

/**
 * The type of the action which signals to moderates a chat message.
 * 
 * {
 *     type: SEND_MESSAGE_MODERATION,
 *     message: IMessage,
 *     reason: string
 * }
 */
export const SEND_MESSAGE_MODERATION = 'SEND_MESSAGE_MODERATION';

/*
 * The type of the action which signals a request to retract
 * (delete) a previously sent chat message.
 * 
 * {
 *     type: SEND_MESSAGE_RETRACTION,
 *     message: IMessage
 * }
 */
export const SEND_MESSAGE_RETRACTION = 'SEND_MESSAGE_RETRACTION';

/*
 * The type of the action which signals sending an edit for an existing chat message.
 *
 * {
 *     type: SEND_MESSAGE_EDIT,
 *     messageId: string,
 *     message: string
 * }
 */
export const SEND_MESSAGE_EDIT = 'SEND_MESSAGE_EDIT';

/**
 * The type of the action which signals a reaction to a message.
 *
 * {
 *     type: SEND_REACTION,
 *     reaction: string,
 *     messageID: string,
 *     receiverID: string
 * }
 */
export const SEND_REACTION = 'SEND_REACTION';

/**
 * The type of action which sets the currently focused search match index.
 *
 * {
 *     type: SET_CHAT_SEARCH_MATCH_INDEX,
 *     index: number
 * }
 */
export const SET_CHAT_SEARCH_MATCH_INDEX = 'SET_CHAT_SEARCH_MATCH_INDEX';

/**
 * The type of action which sets the chat search query.
 *
 * {
 *     type: SET_CHAT_SEARCH_QUERY,
 *     query: string
 * }
 */
export const SET_CHAT_SEARCH_QUERY = 'SET_CHAT_SEARCH_QUERY';

/**
 * The type of action which signals the initiation of sending of as private message to the
 * supplied recipient.
 *
 * {
 *     participant: Participant,
 *     type: SET_PRIVATE_MESSAGE_RECIPIENT
 * }
 */
export const SET_PRIVATE_MESSAGE_RECIPIENT = 'SET_PRIVATE_MESSAGE_RECIPIENT';

/**
 * The type of action which signals setting the focused tab.
 *
 * {
 *     type: SET_FOCUSED_TAB,
 *     tabId: string
 * }
 */
export const SET_FOCUSED_TAB = 'SET_FOCUSED_TAB';

/**
 * The type of action which sets the current recipient for lobby messages.
 *
 * {
 *     participant: Object,
 *     type: SET_LOBBY_CHAT_RECIPIENT
 * }
 */
export const SET_LOBBY_CHAT_RECIPIENT = 'SET_LOBBY_CHAT_RECIPIENT';

/**
 * The type of action sets the state of lobby messaging status.
 *
 * {
 *     type: SET_LOBBY_CHAT_ACTIVE_STATE
 *     payload: boolean
 * }
 */
export const SET_LOBBY_CHAT_ACTIVE_STATE = 'SET_LOBBY_CHAT_ACTIVE_STATE';

/**
 * The type of action removes the lobby messaging from participant.
 *
 * {
 *     type: REMOVE_LOBBY_CHAT_PARTICIPANT
 * }
 */
export const REMOVE_LOBBY_CHAT_PARTICIPANT = 'REMOVE_LOBBY_CHAT_PARTICIPANT';

/**
 * The type of action which signals to delete your own message after sending it (self deletion).
 * 
 * {
 *     type: RETRACT_MESSAGE
 * }
 */
export const RETRACT_MESSAGE = 'RETRACT_MESSAGE';

/**
 * The type of action which signals to set the width of the chat panel.
 *
 * {
 *      type: SET_CHAT_WIDTH,
 *      width: number
 * }
 */
export const SET_CHAT_WIDTH = 'SET_CHAT_WIDTH';

/**
 * The type of action which sets the width for the chat panel (user resized).
 * {
 *      type: SET_USER_CHAT_WIDTH,
 *      width: number
 * }
 */
export const SET_USER_CHAT_WIDTH = 'SET_USER_CHAT_WIDTH';

/**
 * The type of action which sets whether the user is resizing the chat panel or not.
 * {
 *      type: SET_CHAT_IS_RESIZING,
 *      resizing: boolean
 * }
 */
export const SET_CHAT_IS_RESIZING = 'SET_CHAT_IS_RESIZING';

/**
  * The type of action sets the timestamp of the last private chat recipients list changed.
  *
  * {
  *     type: NOTIFY_PRIVATE_RECIPIENTS_CHANGED
  * }
  */
 export const NOTIFY_PRIVATE_RECIPIENTS_CHANGED = 'NOTIFY_PRIVATE_RECIPIENTS_CHANGED';

/**
 * The type of action which sets whether the server handles message moderation
 * and editing for this room.
 *
 * {
 *     type: SET_MESSAGE_MODERATION_SUPPORTED,
 *     supported: boolean
 * }
 */
export const SET_MESSAGE_MODERATION_SUPPORTED = 'SET_MESSAGE_MODERATION_SUPPORTED';