From 7a634676107442b681b5613245b5fdf9deca385b Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Wed, 17 Aug 2022 10:01:09 -0400 Subject: [PATCH] do not send the call end slash command (no fallthrough) (#6580) --- app/components/post_draft/send_handler/send_handler.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/post_draft/send_handler/send_handler.tsx b/app/components/post_draft/send_handler/send_handler.tsx index d8d84ace4..e2a318ddd 100644 --- a/app/components/post_draft/send_handler/send_handler.tsx +++ b/app/components/post_draft/send_handler/send_handler.tsx @@ -175,8 +175,9 @@ export default function SendHandler({ const sendCommand = useCallback(async () => { if (value.trim() === '/call end') { await handleEndCall(); - - // NOTE: fallthrough because the server may want to handle the command as well + setSendingMessage(false); + clearDraft(); + return; } const status = DraftUtils.getStatusFromSlashCommand(value);