feat(chat): revert char_limit for input (#14973)

* feat(chat): revert char_limit for message input
pull/14977/head jitsi-meet_9658
Calinteodor 10 months ago committed by GitHub
parent 70a05e487e
commit b2e06c1c94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      react/features/chat/components/native/ChatInputBar.tsx
  2. 2
      react/features/chat/components/web/ChatInput.tsx
  3. 2
      react/features/chat/constants.ts

@ -10,7 +10,6 @@ import { ASPECT_RATIO_WIDE } from '../../../base/responsive-ui/constants';
import IconButton from '../../../base/ui/components/native/IconButton';
import Input from '../../../base/ui/components/native/Input';
import { BUTTON_TYPES } from '../../../base/ui/constants.native';
import { CHAR_LIMIT } from '../../constants';
import styles from './styles';
@ -92,7 +91,6 @@ class ChatInputBar extends Component<IProps, IState> {
<Input
blurOnSubmit = { false }
customStyles = {{ container: styles.customInputContainer }}
maxLength = { CHAR_LIMIT }
multiline = { false }
onBlur = { this._onFocused(false) }
onChange = { this._onChangeText }

@ -8,7 +8,6 @@ import { translate } from '../../../base/i18n/functions';
import { IconFaceSmile, IconSend } from '../../../base/icons/svg';
import Button from '../../../base/ui/components/web/Button';
import Input from '../../../base/ui/components/web/Input';
import { CHAR_LIMIT } from '../../constants';
import { areSmileysDisabled } from '../../functions';
import SmileysPanel from './SmileysPanel';
@ -137,7 +136,6 @@ class ChatInput extends Component<IProps, IState> {
icon = { this.props._areSmileysDisabled ? undefined : IconFaceSmile }
iconClick = { this._toggleSmileysPanel }
id = 'chat-input-messagebox'
maxLength = { CHAR_LIMIT }
maxRows = { 5 }
onChange = { this._onMessageChange }
onKeyPress = { this._onDetectSubmit }

@ -48,5 +48,3 @@ export const TIMESTAMP_FORMAT = 'H:mm';
* The namespace for system messages.
*/
export const MESSAGE_TYPE_SYSTEM = 'system_chat_message';
export const CHAR_LIMIT = 500;

Loading…
Cancel
Save