From 46bfc228693dbf2a27f021a95cd233c5332ee581 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Fri, 15 Mar 2024 02:48:45 -0700 Subject: [PATCH] Show error on misused /beam --- src/apps/chat/AppChat.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/chat/AppChat.tsx b/src/apps/chat/AppChat.tsx index 3bd3635c7..c8c030849 100644 --- a/src/apps/chat/AppChat.tsx +++ b/src/apps/chat/AppChat.tsx @@ -228,6 +228,8 @@ export function AppChat() { return; case 'mode-beam': + if (chatCommand.isError) + return cHandler.messagesReplace(history); // remove '/beam ', as we want to be a user chat message Object.assign(lastMessage, { text: chatCommand.params || '' }); cHandler.messagesReplace(history);