mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Use callkit to Pause/Resume
This commit is contained in:
parent
5c0092351f
commit
1d2d6f7605
1 changed files with 7 additions and 2 deletions
|
|
@ -192,9 +192,14 @@ class CallData {
|
|||
|
||||
func togglePause() {
|
||||
if (isCallPaused()) {
|
||||
try?call.resume()
|
||||
CallsViewModel.shared.callsData.value?.forEach {
|
||||
if ($0.canCallBePaused()) {
|
||||
CallManager.instance().setHeld(call: $0.call, hold: true)
|
||||
}
|
||||
}
|
||||
CallManager.instance().setHeld(call: call, hold: false)
|
||||
} else {
|
||||
try?call.pause()
|
||||
CallManager.instance().setHeld(call: call, hold: true)
|
||||
}
|
||||
isPaused.value = isCallPaused()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue