Partially revert "Clean up inviteLink handling, harden compose input"
This commit is contained in:
parent
9f9dd4cd98
commit
e859fcd4b4
11 changed files with 0 additions and 48 deletions
|
@ -77,7 +77,6 @@ export type Props = {
|
|||
onSubmit(message: string, mentions: Array<BodyRangeType>): unknown;
|
||||
getQuotedMessage(): unknown;
|
||||
clearQuotedMessage(): unknown;
|
||||
setSecureInput(enabled: boolean): unknown;
|
||||
};
|
||||
|
||||
const MAX_LENGTH = 64 * 1024;
|
||||
|
@ -95,7 +94,6 @@ export const CompositionInput: React.ComponentType<Props> = props => {
|
|||
skinTone,
|
||||
draftText,
|
||||
draftBodyRanges,
|
||||
setSecureInput,
|
||||
getQuotedMessage,
|
||||
clearQuotedMessage,
|
||||
sortedGroupMembers,
|
||||
|
@ -252,20 +250,6 @@ export const CompositionInput: React.ComponentType<Props> = props => {
|
|||
return false;
|
||||
};
|
||||
|
||||
const onFocus = (): void => {
|
||||
setSecureInput(true);
|
||||
};
|
||||
|
||||
const onBlur = (): void => {
|
||||
setSecureInput(false);
|
||||
};
|
||||
|
||||
React.useEffect(() => {
|
||||
return () => {
|
||||
setSecureInput(false);
|
||||
};
|
||||
}, [setSecureInput]);
|
||||
|
||||
const onEnter = (): boolean => {
|
||||
const quill = quillRef.current;
|
||||
const emojiCompletion = emojiCompletionRef.current;
|
||||
|
@ -501,8 +485,6 @@ export const CompositionInput: React.ComponentType<Props> = props => {
|
|||
onChange,
|
||||
onEnter,
|
||||
onEscape,
|
||||
onFocus,
|
||||
onBlur,
|
||||
onPickEmoji,
|
||||
onShortKeyEnter,
|
||||
onTab,
|
||||
|
@ -517,8 +499,6 @@ export const CompositionInput: React.ComponentType<Props> = props => {
|
|||
return (
|
||||
<ReactQuill
|
||||
className={`${BASE_CLASS_NAME}__quill`}
|
||||
onFocus={() => callbacksRef.current.onFocus()}
|
||||
onBlur={() => callbacksRef.current.onBlur()}
|
||||
onChange={() => callbacksRef.current.onChange()}
|
||||
defaultValue={delta}
|
||||
modules={{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue