do not send the call end slash command (no fallthrough) (#6580)
This commit is contained in:
parent
1781477bc6
commit
7a63467610
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue