2022-04-26 13:15:31 +03:00
|
|
|
import React from 'react';
|
2023-03-21 09:47:52 +02:00
|
|
|
import { connect } from 'react-redux';
|
2022-04-26 13:15:31 +03:00
|
|
|
|
2023-04-03 13:49:19 +03:00
|
|
|
import { translate } from '../../../base/i18n/functions';
|
2022-04-26 13:15:31 +03:00
|
|
|
import JitsiScreen from '../../../base/modal/components/JitsiScreen';
|
|
|
|
|
import ChatInputBar from '../../../chat/components/native/ChatInputBar';
|
|
|
|
|
import MessageContainer from '../../../chat/components/native/MessageContainer';
|
|
|
|
|
import AbstractLobbyScreen, {
|
2023-04-25 13:50:52 +03:00
|
|
|
IProps as AbstractProps,
|
2022-04-26 13:15:31 +03:00
|
|
|
_mapStateToProps as abstractMapStateToProps
|
|
|
|
|
} from '../AbstractLobbyScreen';
|
|
|
|
|
|
|
|
|
|
import styles from './styles';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Implements a chat screen that appears when communication is started
|
|
|
|
|
* between the moderator and the participant being in the lobby.
|
|
|
|
|
*/
|
|
|
|
|
class LobbyChatScreen extends
|
|
|
|
|
AbstractLobbyScreen<AbstractProps> {
|
|
|
|
|
/**
|
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
* @returns {ReactElement}
|
|
|
|
|
*/
|
2025-03-12 10:19:11 -05:00
|
|
|
override render() {
|
2022-04-26 13:15:31 +03:00
|
|
|
const { _lobbyChatMessages } = this.props;
|
|
|
|
|
|
|
|
|
|
return (
|
2023-11-08 11:44:10 +02:00
|
|
|
<JitsiScreen
|
|
|
|
|
hasBottomTextInput = { true }
|
|
|
|
|
hasExtraHeaderHeight = { true }
|
|
|
|
|
style = { styles.lobbyChatWrapper }>
|
2023-04-25 13:50:52 +03:00
|
|
|
{/* @ts-ignore */}
|
2022-04-26 13:15:31 +03:00
|
|
|
<MessageContainer messages = { _lobbyChatMessages } />
|
|
|
|
|
<ChatInputBar onSend = { this._onSendMessage } />
|
|
|
|
|
</JitsiScreen>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_onSendMessage: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default translate(connect(abstractMapStateToProps)(LobbyChatScreen));
|