@@ -2,8 +2,9 @@ import { getLogger } from '@jitsi/logger';
22import { $msg , Strophe } from 'strophe.js' ;
33
44import { XMPPEvents } from '../../service/xmpp/XMPPEvents' ;
5- import XMPP from './xmpp' ;
5+
66import ChatRoom from './ChatRoom' ;
7+ import XMPP from './xmpp' ;
78
89const logger = getLogger ( 'xmpp:Lobby' ) ;
910
@@ -151,9 +152,9 @@ export default class Lobby {
151152 * Gets the local id for a participant in a lobby room.
152153 * This is used for lobby room private chat messages.
153154 *
154- * @returns {string|undefined }
155+ * @returns {Optional< string> }
155156 */
156- getLocalId ( ) : string | undefined {
157+ getLocalId ( ) : Optional < string > {
157158 if ( this . lobbyRoom ) {
158159 return Strophe . getResourceFromJid ( this . lobbyRoom . myroomjid ) ;
159160 }
@@ -166,7 +167,7 @@ export default class Lobby {
166167 *
167168 * @returns {Function|undefined } Handler returned to be able to remove it later.
168169 */
169- addMessageListener ( listener : ( message : string , participantId : string ) => void ) : ( ( participantId : string , message : any ) => void ) | undefined {
170+ addMessageListener ( listener : ( message : string , participantId : string ) => void ) : Optional < ( ( participantId : string , message : any ) => void ) > {
170171 if ( this . lobbyRoom ) {
171172 const handler = ( participantId : string , message : string ) => {
172173 listener ( message , Strophe . getResourceFromJid ( participantId ) ) ;
0 commit comments