also allow commands to be pill-candidates

pull/21833/head
Bruno Windels 2019-09-30 11:15:46 +02:00
parent ca0130db02
commit 77a61519ef
1 changed files with 1 additions and 1 deletions

View File

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