Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): keep voice recording active across apps and threads #10140

Closedbentsignal(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/10140/headopened View on GitHub

Showing 12 changed files with 110 additions and 4 deletions (loading 9).

x
0 of 12 viewed, 12 left
0 additions and 2 deletionsapps/mobile/src/features/threads/NewTaskDraftScreen.tsxModified
View file
@@ -326,10 +326,8 @@
});
const voiceInput = useVoiceInputController({
ownerKey: flow.draftKey,
- draftMessage: flow.prompt,
selection: composerMenu.selection,
disabled: isIncomingShareTransferPending || isImportingShare || flow.submitting,
- onChangeDraftMessage: flow.setPrompt,
onChangeSelection: composerMenu.onSelectionChange,
});
const voicePresentation = resolveVoiceComposerPresentation(
0 additions and 2 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -353,9 +353,7 @@
});
const voiceInput = useVoiceInputController({
ownerKey: composerOwnerKey,
- draftMessage: props.draftMessage,
selection: composerMenu.selection,
- onChangeDraftMessage: props.onChangeDraftMessage,
onChangeSelection: composerMenu.onSelectionChange,
});
const voicePresentation = resolveVoiceComposerPresentation(
110 additions and 0 deletionsapps/mobile/src/features/voice-input/VoiceInputProvider.tsxAdded
View file
@@ -0,0 +1,110 @@
+import {