"Fossies" - the Fresh Open Source Software Archive 
Member "jitsi-meet-7312/react/features/chat/actionTypes.ts" (1 Jun 2023, 2411 Bytes) of package /linux/misc/jitsi-meet-7312.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "actionTypes.ts":
jitsi-meet_8319_vs_jitsi-meet_8615.
1 /**
2 * The type of the action which signals to add a new chat message.
3 *
4 * {
5 * type: ADD_MESSAGE,
6 * displayName: string
7 * hasRead: boolean,
8 * id: string,
9 * messageType: string,
10 * message: string,
11 * timestamp: string,
12 * }
13 */
14 export const ADD_MESSAGE = 'ADD_MESSAGE';
15
16 /**
17 * The type of the action which signals to clear messages in Redux.
18 *
19 * {
20 * type: CLEAR_MESSAGES
21 * }
22 */
23 export const CLEAR_MESSAGES = 'CLEAR_MESSAGES';
24
25 /**
26 * The type of the action which signals the cancellation the chat panel.
27 *
28 * {
29 * type: CLOSE_CHAT
30 * }
31 */
32 export const CLOSE_CHAT = 'CLOSE_CHAT';
33
34 /**
35 * The type of the action which signals to edit chat message.
36 *
37 * {
38 * type: EDIT_MESSAGE,
39 * message: Object
40 * }
41 */
42 export const EDIT_MESSAGE = 'EDIT_MESSAGE';
43
44 /**
45 * The type of the action which signals to display the chat panel.
46 *
47 * {
48 * type: OPEN_CHAT
49 * }
50 */
51 export const OPEN_CHAT = 'OPEN_CHAT';
52
53 /**
54 * The type of the action which signals a send a chat message to everyone in the
55 * conference.
56 *
57 * {
58 * type: SEND_MESSAGE,
59 * ignorePrivacy: boolean,
60 * message: string
61 * }
62 */
63 export const SEND_MESSAGE = 'SEND_MESSAGE';
64
65 /**
66 * The type of action which signals the initiation of sending of as private message to the
67 * supplied recipient.
68 *
69 * {
70 * participant: Participant,
71 * type: SET_PRIVATE_MESSAGE_RECIPIENT
72 * }
73 */
74 export const SET_PRIVATE_MESSAGE_RECIPIENT = 'SET_PRIVATE_MESSAGE_RECIPIENT';
75
76 /**
77 * The type of action which signals the update a _isPollsTabFocused.
78 *
79 * {
80 * isPollsTabFocused: boolean,
81 * type: SET_PRIVATE_MESSAGE_RECIPIENT
82 * }
83 */
84 export const SET_IS_POLL_TAB_FOCUSED = 'SET_IS_POLL_TAB_FOCUSED';
85
86 /**
87 * The type of action which sets the current recipient for lobby messages.
88 *
89 * {
90 * participant: Object,
91 * type: SET_LOBBY_CHAT_RECIPIENT
92 * }
93 */
94 export const SET_LOBBY_CHAT_RECIPIENT = 'SET_LOBBY_CHAT_RECIPIENT';
95
96 /**
97 * The type of action sets the state of lobby messaging status.
98 *
99 * {
100 * type: SET_LOBBY_CHAT_ACTIVE_STATE
101 * payload: boolean
102 * }
103 */
104 export const SET_LOBBY_CHAT_ACTIVE_STATE = 'SET_LOBBY_CHAT_ACTIVE_STATE';
105
106 /**
107 * The type of action removes the lobby messaging from participant.
108 *
109 * {
110 * type: REMOVE_LOBBY_CHAT_PARTICIPANT
111 * }
112 */
113 export const REMOVE_LOBBY_CHAT_PARTICIPANT = 'REMOVE_LOBBY_CHAT_PARTICIPANT';