fix typo in fallback codepath

pull/21833/head
Michael Telatynski 2020-01-22 14:24:10 +00:00
parent e1e53f567f
commit 516dd25797
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export default class SendMessageComposer extends React.Component {
// be extra resilient when somehow the AutocompleteWrapperModel or
// CommandPartCreator fails to insert a command part, so we don't send
// a command as a message
if (firstPart.text.startsWith("/") && firstPart.text.startsWith("//") && !firstPart.text.startsWith("//")
if (firstPart.text.startsWith("/") && !firstPart.text.startsWith("//")
&& (firstPart.type === "plain" || firstPart.type === "pill-candidate")) {
return true;
}