opt: open audio when needed
This commit is contained in:
parent
c4b1c51e9e
commit
86b88c2927
2 changed files with 12 additions and 9 deletions
|
|
@ -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("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue