feat #14740: merge speakers and name calls
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user