Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions components/realtime-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,7 @@ export const RealtimeChat = ({
const handleSendMessage = useCallback(
async (message: string) => {
if (!isConnected) {
toaster.error({
title: "Not connected to chat",
description: "Please wait for the chat to connect before sending messages."
});
return;
throw new Error("Please wait for the chat to connect before sending messages.");
}
if (!message.trim() || !sendMessage || moderationStatus.isBanned) return;

Expand Down