From 582c1b1d6688c32a226561bf9be322503695f3b2 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Tue, 23 Apr 2024 16:07:05 +0200 Subject: [PATCH] Remove core.removeAccount from the main queue --- Linphone/Core/CoreContext.swift | 15 --------------- .../Fragments/ParticipantsListFragment.swift | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 Linphone/UI/Call/Fragments/ParticipantsListFragment.swift diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index 35cddb155..0cd8593b1 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -169,21 +169,6 @@ final class CoreContext: ObservableObject { self.loggedIn = false ToastViewModel.shared.toastMessage = "Registration failed" ToastViewModel.shared.displayToast = true - - self.monitor.pathUpdateHandler = { path in - if path.status == .satisfied { - if cbVal.state != .Ok && cbVal.state != .Progress { - let params = cbVal.account.params - let clonedParams = params?.clone() - clonedParams?.registerEnabled = false - cbVal.account.params = clonedParams - - cbVal.core.removeAccount(account: cbVal.account) - cbVal.core.clearAccounts() - cbVal.core.clearAllAuthInfo() - } - } - } } }) diff --git a/Linphone/UI/Call/Fragments/ParticipantsListFragment.swift b/Linphone/UI/Call/Fragments/ParticipantsListFragment.swift new file mode 100644 index 000000000..100b7d882 --- /dev/null +++ b/Linphone/UI/Call/Fragments/ParticipantsListFragment.swift @@ -0,0 +1,18 @@ +// +// ParticipantsListFragment.swift +// Linphone +// +// Created by BenoƮt Martins on 23/04/2024. +// + +import SwiftUI + +struct ParticipantsListFragment: View { + var body: some View { + Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) + } +} + +#Preview { + ParticipantsListFragment() +}