mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
fix typo in fallback codepath
This commit is contained in:
parent
e1e53f567f
commit
516dd25797
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user