Skip to content

Commit f26ae1b

Browse files
committed
fix(billing): hold queued Chat sends while the plan is required
1 parent b990773 commit f26ae1b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/hooks

‎apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3682,6 +3682,7 @@ export function useChat(
36823682
)
36833683

36843684
if ((!message.trim() && !fileAttachments?.length) || !scopeKey) return false
3685+
if (chatPlanRequired) return false
36853686
const { onOptimisticSendApplied } = options ?? {}
36863687
const pendingStop = options?.pendingStop ?? pendingStopPromiseRef.current
36873688
let queuedSendHandoff = options?.queuedSendHandoff
@@ -4392,6 +4393,7 @@ export function useChat(
43924393
workspaceId,
43934394
organizationId,
43944395
scopeKey,
4396+
chatPlanRequired,
43954397
queryClient,
43964398
upsertChatHistory,
43974399
modelSelectorEnabled,

0 commit comments

Comments
 (0)