mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 05:45:46 +03:00
ChatEditor: removing unused code preventing slashes
This commit is contained in:
parent
8706f8707f
commit
af896989f0
@ -177,9 +177,6 @@ const ChatEditor = React.forwardRef<CodeMirrorShim, ChatEditorProps>(({ inCodeMo
|
|||||||
}, [inCodeMode, placeholder]);
|
}, [inCodeMode, placeholder]);
|
||||||
|
|
||||||
function messageChange(editor, data, value) {
|
function messageChange(editor, data, value) {
|
||||||
if(value.endsWith('/')) {
|
|
||||||
editor.showHint(['test', 'foo']);
|
|
||||||
}
|
|
||||||
if (message !== '' && value == '') {
|
if (message !== '' && value == '') {
|
||||||
setMessage(value);
|
setMessage(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user