feat #14740: merge speakers and name calls

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 11:17:40 +01:00
co-authored by Claude Opus 5.5
parent 5dfe1d9357
commit 345dd01147
12 changed files with 1213 additions and 29 deletions
+40
View File
@@ -146,6 +146,46 @@ pub fn rename_speaker(
Ok(())
}
/// Merges remote speaker `from_key` into `into_key` (undone by
/// [`unmerge_speaker`]).
#[tauri::command]
pub fn merge_speakers(
app: AppHandle,
state: State<'_, AppState>,
id: CallId,
from_key: String,
into_key: String,
) -> CmdResult<()> {
state.merge_speakers(id, &from_key, &into_key)?;
processing::emit_updated(&app, id);
Ok(())
}
#[tauri::command]
pub fn unmerge_speaker(
app: AppHandle,
state: State<'_, AppState>,
id: CallId,
from_key: String,
) -> CmdResult<()> {
state.unmerge_speaker(id, &from_key)?;
processing::emit_updated(&app, id);
Ok(())
}
/// Names a call (an empty or missing title restores the default heading).
#[tauri::command]
pub fn rename_call(
app: AppHandle,
state: State<'_, AppState>,
id: CallId,
title: Option<String>,
) -> CmdResult<()> {
state.rename_call(id, title.as_deref())?;
processing::emit_updated(&app, id);
Ok(())
}
#[tauri::command]
pub fn list_accounts() -> Vec<Account> {
accounts::list()