|
@@ -1086,6 +1086,39 @@ declare class JitsiConference {
|
1086
|
1086
|
* @returns {Promise<never>}
|
1087
|
1087
|
*/
|
1088
|
1088
|
joinLobby(displayName: string, email: string): Promise<never>;
|
|
1089
|
+ /**
|
|
1090
|
+ * Gets the local id for a participant in a lobby room.
|
|
1091
|
+ * Returns undefined when current participant is not in the lobby room.
|
|
1092
|
+ * This is used for lobby room private chat messages.
|
|
1093
|
+ *
|
|
1094
|
+ * @returns {string}
|
|
1095
|
+ */
|
|
1096
|
+ myLobbyUserId(): string;
|
|
1097
|
+ /**
|
|
1098
|
+ * Sends a message to a lobby room.
|
|
1099
|
+ * When id is specified it sends a private message.
|
|
1100
|
+ * Otherwise it sends the message to all moderators.
|
|
1101
|
+ * @param {message} Object The message to send
|
|
1102
|
+ * @param {string} id The participant id.
|
|
1103
|
+ *
|
|
1104
|
+ * @returns {void}
|
|
1105
|
+ */
|
|
1106
|
+ sendLobbyMessage(message: any, id: string): void;
|
|
1107
|
+ /**
|
|
1108
|
+ * Adds a message listener to the lobby room
|
|
1109
|
+ * @param {Function} listener The listener function,
|
|
1110
|
+ * called when a new message is received in the lobby room.
|
|
1111
|
+ *
|
|
1112
|
+ * @returns {Function} Handler returned to be able to remove it later.
|
|
1113
|
+ */
|
|
1114
|
+ addLobbyMessageListener(listener: Function): Function;
|
|
1115
|
+ /**
|
|
1116
|
+ * Removes a message handler from the lobby room
|
|
1117
|
+ * @param {Function} handler The handler function to remove.
|
|
1118
|
+ *
|
|
1119
|
+ * @returns {void}
|
|
1120
|
+ */
|
|
1121
|
+ removeLobbyMessageHandler(handler: Function): void;
|
1089
|
1122
|
/**
|
1090
|
1123
|
* Denies an occupant in the lobby room access to the conference.
|
1091
|
1124
|
* @param {string} id The participant id.
|