Stop putting up previews of slash commands.
This commit is contained in:
parent
bdeda313cf
commit
c415c86cbd
1 changed files with 3 additions and 1 deletions
|
@ -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 = `<small class="text-primary"><em>(Sent to @${userToDm.username}):</em></small> ${draft}`;
|
||||
|
||||
addMessage({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue