Commit f5aeea9c authored by DanmeiChen's avatar DanmeiChen
Browse files

fix conference issue

parent 4c026f68
Pipeline #26978 passed with stage
in 4 minutes and 34 seconds
...@@ -322,6 +322,8 @@ import AVFoundation ...@@ -322,6 +322,8 @@ import AVFoundation
let groupAction = CXSetGroupCallAction(call: currentUuid!, callUUIDToGroupWith: newUuid) let groupAction = CXSetGroupCallAction(call: currentUuid!, callUUIDToGroupWith: newUuid)
let transcation = CXTransaction(action: groupAction) let transcation = CXTransaction(action: groupAction)
requestTransaction(transcation, action: "groupCall") requestTransaction(transcation, action: "groupCall")
setResumeCalls()
} else { } else {
try? lc?.addAllToConference() try? lc?.addAllToConference()
} }
...@@ -393,7 +395,15 @@ import AVFoundation ...@@ -393,7 +395,15 @@ import AVFoundation
} }
} }
} }
func setResumeCalls() {
for call in CallManager.instance().lc!.calls {
if (call.state == .Paused || call.state == .Pausing || call.state == .PausedByRemote) {
setHeld(call: call, hold: false)
}
}
}
@objc func performActionWhenCoreIsOn(action: @escaping ()->Void ) { @objc func performActionWhenCoreIsOn(action: @escaping ()->Void ) {
if (globalState == .On) { if (globalState == .On) {
action() action()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment