diff --git a/chat/src/hooks/useChat.tsx b/chat/src/hooks/useChat.tsx index 369d7d89d..a3584c28b 100644 --- a/chat/src/hooks/useChat.tsx +++ b/chat/src/hooks/useChat.tsx @@ -102,7 +102,9 @@ export function ChatProvider({ children }: PropsWithChildren) { } }, []); const sendMessage = useCallback(() => { - if (userToDm) { + if (draft.startsWith("/")) { + // this is a command; just skip posting stuff + } else if (userToDm) { const directMessage = `(Sent to @${userToDm.username}): ${draft}`; addMessage({