ChatEditor: removing unused code preventing slashes

This commit is contained in:
Hunter Miller 2021-07-14 11:16:46 -05:00
parent 8706f8707f
commit af896989f0

View File

@ -177,9 +177,6 @@ const ChatEditor = React.forwardRef<CodeMirrorShim, ChatEditorProps>(({ inCodeMo
}, [inCodeMode, placeholder]);
function messageChange(editor, data, value) {
if(value.endsWith('/')) {
editor.showHint(['test', 'foo']);
}
if (message !== '' && value == '') {
setMessage(value);
}