do not send the call end slash command (no fallthrough) (#6580)

This commit is contained in:
Christopher Poile 2022-08-17 10:01:09 -04:00 committed by GitHub
parent 1781477bc6
commit 7a63467610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);