mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Address Stories review feedback
This commit is contained in:
1 parent
2edcd5bc69
commit
fec84dbf78
48 files changed
+783
-232
No files matched your search
+2
-7
@@ -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: () =>
|
||||
|
||||
Reference in new issue
Block a user