diff --git a/apps/desktop/src/components/editor-area/index.tsx b/apps/desktop/src/components/editor-area/index.tsx index 134547dc9..cc975fbdc 100644 --- a/apps/desktop/src/components/editor-area/index.tsx +++ b/apps/desktop/src/components/editor-area/index.tsx @@ -63,13 +63,16 @@ export default function EditorArea({ const generateTitle = useGenerateTitleMutation({ sessionId }); const preMeetingNote = useSession(sessionId, (s) => s.session.pre_meeting_memo_html) ?? ""; + const hasTranscriptWords = useSession(sessionId, (s) => s.session.words.length > 0); const enhance = useEnhanceMutation({ sessionId, preMeetingNote, rawContent, onSuccess: (content) => { - generateTitle.mutate({ enhancedContent: content }); + if (hasTranscriptWords) { + generateTitle.mutate({ enhancedContent: content }); + } }, }); diff --git a/apps/desktop/src/components/editor-area/note-header/listen-button.tsx b/apps/desktop/src/components/editor-area/note-header/listen-button.tsx index 037aa3cce..102cd9fd2 100644 --- a/apps/desktop/src/components/editor-area/note-header/listen-button.tsx +++ b/apps/desktop/src/components/editor-area/note-header/listen-button.tsx @@ -218,10 +218,12 @@ function WhenInactiveAndMeetingEndedOnboarding({ disabled, onClick }: { disabled } function WhenActive() { + const ongoingSessionId = useOngoingSession((s) => s.sessionId); const ongoingSessionStore = useOngoingSession((s) => ({ pause: s.pause, stop: s.stop, })); + const sessionWords = useSession(ongoingSessionId!, (s) => s.session.words); const [isPopoverOpen, setIsPopoverOpen] = useState(false); const handlePauseSession = () => { @@ -232,6 +234,10 @@ function WhenActive() { const handleStopSession = () => { ongoingSessionStore.stop(); setIsPopoverOpen(false); + + if (sessionWords.length === 0) { + sonnerToast.dismiss("recording-consent-reminder"); + } }; return ( diff --git a/apps/desktop/src/locales/en/messages.po b/apps/desktop/src/locales/en/messages.po index 4940c19df..dcd971e86 100644 --- a/apps/desktop/src/locales/en/messages.po +++ b/apps/desktop/src/locales/en/messages.po @@ -881,7 +881,7 @@ msgstr "Optional for participant suggestions" msgid "Owner" msgstr "Owner" -#: src/components/editor-area/note-header/listen-button.tsx:302 +#: src/components/editor-area/note-header/listen-button.tsx:308 msgid "Pause" msgstr "Pause" @@ -967,7 +967,7 @@ msgstr "Search names or emails" msgid "Search templates..." msgstr "Search templates..." -#: src/components/search-bar.tsx:144 +#: src/components/search-bar.tsx:145 msgid "Search..." msgstr "Search..." @@ -1039,7 +1039,7 @@ msgstr "Start Monthly Plan" msgid "Start recording" msgstr "Start recording" -#: src/components/editor-area/note-header/listen-button.tsx:310 +#: src/components/editor-area/note-header/listen-button.tsx:316 msgid "Stop" msgstr "Stop" diff --git a/apps/desktop/src/locales/ko/messages.po b/apps/desktop/src/locales/ko/messages.po index 6d97881be..8b250cbee 100644 --- a/apps/desktop/src/locales/ko/messages.po +++ b/apps/desktop/src/locales/ko/messages.po @@ -881,7 +881,7 @@ msgstr "" msgid "Owner" msgstr "" -#: src/components/editor-area/note-header/listen-button.tsx:302 +#: src/components/editor-area/note-header/listen-button.tsx:308 msgid "Pause" msgstr "" @@ -967,7 +967,7 @@ msgstr "" msgid "Search templates..." msgstr "" -#: src/components/search-bar.tsx:144 +#: src/components/search-bar.tsx:145 msgid "Search..." msgstr "" @@ -1039,7 +1039,7 @@ msgstr "" msgid "Start recording" msgstr "" -#: src/components/editor-area/note-header/listen-button.tsx:310 +#: src/components/editor-area/note-header/listen-button.tsx:316 msgid "Stop" msgstr ""