Delegate refactoring, and enable audio route selection in CallTutorial

This commit is contained in:
QuentinArguillere
2021-05-28 16:00:43 +02:00
parent f543236284
commit a63960ab0b
6 changed files with 136 additions and 131 deletions

View File

@@ -125,8 +125,8 @@ class CallKitTutorialDelegate: CoreDelegate {
var tutorialContext : CallKitExampleContext!
func onRegistrationStateChanged(core: Core, proxyConfig: ProxyConfig, state: RegistrationState, message: String) {
print("New registration state \(state) for user id \( String(describing: proxyConfig.identityAddress?.asString()))\n")
func onAccountRegistrationStateChanged(core: Core, account: Account, state: RegistrationState, message: String) {
print("New registration state \(state) for user id \( String(describing: account.params?.identityAddress?.asString()))\n")
if (state == .Ok) {
tutorialContext.loggedIn = true
}