diff --git a/Linphone/GeneratedGit.swift b/Linphone/GeneratedGit.swift index 32c77b564..39844a49a 100644 --- a/Linphone/GeneratedGit.swift +++ b/Linphone/GeneratedGit.swift @@ -2,6 +2,6 @@ import Foundation public enum AppGitInfo { public static let branch = "master" - public static let commit = "d0418ae07" + public static let commit = "9d78fc2e2" public static let tag = "6.1.0-alpha" } diff --git a/Linphone/UI/Main/Fragments/ToastView.swift b/Linphone/UI/Main/Fragments/ToastView.swift index 95fe774e3..8ffb2f1da 100644 --- a/Linphone/UI/Main/Fragments/ToastView.swift +++ b/Linphone/UI/Main/Fragments/ToastView.swift @@ -219,10 +219,10 @@ struct ToastView: View { .default_text_style(styleSize: 15) .padding(8) - case "uri_handler_config_success": + case "Success_uri_handler_config_success": Text("uri_handler_config_success_toast") .multilineTextAlignment(.center) - .foregroundStyle(Color.redDanger500) + .foregroundStyle(Color.greenSuccess500) .default_text_style(styleSize: 15) .padding(8) diff --git a/Linphone/Utils/URIHandler.swift b/Linphone/Utils/URIHandler.swift index 5c4b3e7ee..c75950b45 100644 --- a/Linphone/Utils/URIHandler.swift +++ b/Linphone/Utils/URIHandler.swift @@ -50,7 +50,7 @@ class URIHandler { CoreContext.shared.removeCoreDelegateStub(delegate: uriHandlerCoreDelegate!) } if state == .Successful { - toast("uri_handler_config_success") + toast("Success_uri_handler_config_success") CoreContext.shared.removeCoreDelegateStub(delegate: uriHandlerCoreDelegate!) } }) @@ -106,6 +106,10 @@ class URIHandler { urlString = String(urlString.dropFirst(2)) } + if !urlString.starts(with: "https://") { + urlString = "https://" + urlString + } + core.config?.setString(section: "misc", key: "config-uri", value: urlString) try core.setProvisioninguri(newValue: urlString) core.stop()