From 77a61519efe80b85e27480fd4d8ea9942f17dbf7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 30 Sep 2019 11:15:46 +0200 Subject: [PATCH] also allow commands to be pill-candidates --- src/components/views/rooms/SendMessageComposer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index 7987949524..3d81631309 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -182,7 +182,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.type === "plain" && firstPart.text.startsWith("/")) { + if (firstPart.text.startsWith("/") && (firstPart.type === "plain" || firstPart.type === "pill-candidate")) { return true; } }