linux-rust: fix conv detect

This commit is contained in:
Kavish Devar
2025-10-28 17:12:22 +05:30
parent 320964e9d7
commit 17b545481e

View File

@@ -913,7 +913,7 @@ impl MediaController {
debug!("No stored original volume to restore to on status 6"); debug!("No stored original volume to restore to on status 6");
} }
} }
9 => { 7 => {
let mut maybe_original = None; let mut maybe_original = None;
{ {
let mut state = self.state.lock().await; let mut state = self.state.lock().await;
@@ -922,7 +922,7 @@ impl MediaController {
state.conv_original_volume = None; state.conv_original_volume = None;
state.conv_conversation_started = false; state.conv_conversation_started = false;
} else { } else {
debug!("Received status 9 but conversation was not started; ignoring restore"); debug!("Received status 7 but conversation was not started; ignoring restore");
return; return;
} }
} }
@@ -931,9 +931,9 @@ impl MediaController {
tokio::task::spawn_blocking(move || { tokio::task::spawn_blocking(move || {
transition_sink_volume(&sink_clone, orig) transition_sink_volume(&sink_clone, orig)
}).await.unwrap_or(false); }).await.unwrap_or(false);
info!("Conversation end (9): restored volume to original {}", orig); info!("Conversation end (7): restored volume to original {}", orig);
} else { } else {
debug!("No stored original volume to restore to on status 9"); debug!("No stored original volume to restore to on status 7");
} }
} }
_ => { _ => {