mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Fix Stories navigation, sharing, and voice entry
This commit is contained in:
1 parent
5418438339
commit
9e9ce1db22
43 files changed
+744
-137
No files matched your search
@@ -34,6 +34,7 @@ export function createVoiceCommands({
|
||||
supportedProviders,
|
||||
onProviderChange,
|
||||
onSessionEvent,
|
||||
canStartVoice,
|
||||
createCard = (options) => new VoiceCardControls(options),
|
||||
pointer = null,
|
||||
referents = null,
|
||||
@@ -49,6 +50,7 @@ export function createVoiceCommands({
|
||||
let panelMount;
|
||||
const session = createVoiceSession({
|
||||
runner,
|
||||
canStart: (options) => options?.textOnly || canStartVoice?.() !== false,
|
||||
signal,
|
||||
createAdapter: (hooks) => {
|
||||
if (panelHost) actionObserver = panelHost.observeActions(hooks);
|
||||
@@ -284,7 +286,7 @@ export function createVoiceCommands({
|
||||
void session.start({ pushToTalk: false });
|
||||
};
|
||||
const buttonHandler = () => {
|
||||
if (adapter.ignoreButtonClick?.()) return;
|
||||
if (canStartVoice?.() === false || adapter.ignoreButtonClick?.()) return;
|
||||
chat?.close();
|
||||
if (session.isActive() && adapter.getStartOptions?.().textOnly) {
|
||||
session.stop();
|
||||
|
||||
Reference in new issue
Block a user