message: Fix changes after typing / at pos=0 allowing to cancel command
diff: @@ -180,13 +180,14 @@ export default class SendMessageComposer extends React.Component {
  const parts = this.model.parts;
  const firstPart = parts[0];
  if (firstPart) {
  - if (firstPart.type === "command" && !firstPart.text.startsWith("//")) {
  + if (firstPart.type === "command" && firstPart.text.startsWith("/") && !firstPart.text.startsWith("//")) {
  return true;
  }
  // 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.type === "plain" || firstPart.type === "pill-candidate")) {
  + if (firstPart.text.startsWith("/") && firstPart.text.startsWith("//") && !firstPart.text.startsWith("//")
  + && (firstPart.type === "plain" || firstPart.type === "pill-candidate")) {
  return true;
  }
  }
  