feat #14740: configurable call detection delays

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-05 15:53:47 +01:00
co-authored by Claude Opus 5.5
parent bac30205d6
commit 3dfa693c4e
4 changed files with 184 additions and 20 deletions
+3 -4
View File
@@ -115,13 +115,12 @@ pub fn get_call_brief(state: State<'_, AppState>, id: CallId) -> CmdResult<CallB
state.call_brief(id)
}
/// Deletes a finished call's audio and row. If that was the last call the
/// prompt was waiting on, closes the prompt; otherwise the prompt reloads
/// and shows the next one.
/// Deletes a finished call's audio and row. Closes the prompt if no call
/// waits for it any more; otherwise the prompt reloads and shows the next.
#[tauri::command]
pub async fn discard_call(app: AppHandle, id: CallId) -> CmdResult<()> {
blocking(app, move |app| {
if app.state::<AppState>().discard_call(id)? == Some(0) {
if app.state::<AppState>().discard_call(id)? == 0 {
set_window_visible(app, "prompt", false);
}
Ok(())