feat #14740: play back calls
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -72,6 +72,9 @@ pub fn run() {
|
||||
|
||||
let data_dir = app.path().app_data_dir()?;
|
||||
let config_dir = app.path().app_config_dir()?;
|
||||
// The asset protocol may read this directory, and only this one
|
||||
// (`app.security.assetProtocol.scope` in tauri.conf.json).
|
||||
let playback_dir = app.path().app_cache_dir()?.join("playback");
|
||||
std::fs::create_dir_all(&data_dir)?;
|
||||
let store = Store::open(&data_dir.join("calls.sqlite"))?;
|
||||
let recovery = pipeline::recover_on_startup(&store)?;
|
||||
@@ -82,6 +85,7 @@ pub fn run() {
|
||||
Box::new(KeyringSecrets),
|
||||
config_dir.join("settings.json"),
|
||||
data_dir.join("recordings"),
|
||||
playback_dir,
|
||||
);
|
||||
let leftover_jobs = state.store.calls_with_remote_jobs().unwrap_or_else(|e| {
|
||||
log::error!("could not read leftover remote jobs: {e}");
|
||||
@@ -96,6 +100,8 @@ pub fn run() {
|
||||
std::thread::spawn(KeyringSecrets::remove_unused_keys);
|
||||
// Before anything can start a run.
|
||||
processing::clear_upload_dir(app.handle());
|
||||
// Before any window can ask for a mix.
|
||||
state.clear_playback_cache();
|
||||
app.manage(state);
|
||||
app.manage(PendingUpdate::default());
|
||||
app.manage(UpdateSchedule::default());
|
||||
@@ -154,6 +160,7 @@ pub fn run() {
|
||||
commands::merge_speakers,
|
||||
commands::unmerge_speaker,
|
||||
commands::rename_call,
|
||||
commands::prepare_playback,
|
||||
backend::backend_server,
|
||||
backend::backend_status,
|
||||
backend::backend_login,
|
||||
|
||||
Reference in New Issue
Block a user