opt: open audio when needed

This commit is contained in:
Kingtous
2023-02-07 19:40:50 +08:00
parent c4b1c51e9e
commit 86b88c2927
2 changed files with 12 additions and 9 deletions

View File

@@ -1251,8 +1251,9 @@ impl<T: InvokeUiSession> Remote<T> {
}
Some(message::Union::VoiceCallRequest(request)) => {
if request.is_connect {
// TODO: maybe we will do voice call from the peer in the future.
// TODO: maybe we will do a voice call from the peer in the future.
} else {
log::debug!("The remote has requested to close the voice call");
if let Some(sender) = self.stop_voice_call_sender.take() {
allow_err!(sender.send(()));
self.handler.on_voice_call_closed("");