Address Stories review feedback

This commit is contained in:
Manjunath committed 2026-11-16 22:35:07 +05:30
1 parent 2edcd5bc69
commit fec84dbf78
48 files changed
+783 -232

No files matched your search

+2 -7
View File
@@ -1,5 +1,5 @@
import { onFollowChanged } from '../data/followed.js';
import { bootStories } from '../stories/boot.js';
import { bootStories, stopVoiceForStories } from '../stories/boot.js';
import { t } from '../i18n/index.js';
import { useStoriesStore } from '../ui/stores/stories.js';
import { SceneDirector } from '../scenes/director.js';
@@ -91,12 +91,7 @@ export function createApplicationTools({
director: sceneDirector,
store: storiesStore,
onEnter: () => {
const session = voiceCommands?.session;
// A typed command can finish its reply without keeping a microphone on.
if (!session || session.adapter.getStartOptions?.().textOnly) return;
const wasActive = session.isActive();
session.stop();
if (wasActive)
if (stopVoiceForStories(voiceCommands?.session))
storiesStore.flashToast(t('Voice is disabled in Stories.'), 4000);
},
onLoadFailed: () =>