diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index 090b8c4be..b2a95fdd0 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -147,7 +147,7 @@ final class CoreContext: ObservableObject { self.mCore.config!.setBool(section: "sip", key: "auto_answer_replacing_calls", value: false) self.mCore.config!.setBool(section: "sip", key: "deliver_imdn", value: false) - self.mCoreDelegate = CoreDelegateStub(onGlobalStateChanged: { (core: Core, state: GlobalState, message: String) in + self.mCoreDelegate = CoreDelegateStub(onGlobalStateChanged: { (core: Core, state: GlobalState, _: String) in if state == GlobalState.On { #if DEBUG let pushEnvironment = ".dev" @@ -199,7 +199,7 @@ final class CoreContext: ObservableObject { ToastViewModel.shared.displayToast = true } } - }, onConfiguringStatus: { (core: Core, status: ConfiguringState, message: String) in + }, onConfiguringStatus: { (_: Core, status: ConfiguringState, message: String) in Log.info("New configuration state is \(status) = \(message)\n") var accountModels: [AccountModel] = [] for account in self.mCore.accountList { @@ -215,7 +215,7 @@ final class CoreContext: ObservableObject { }, onLogCollectionUploadStateChanged: { (_: Core, _: Core.LogCollectionUploadState, info: String) in if info.starts(with: "https") { DispatchQueue.main.async { - UIPasteboard.general.setValue(info, forPasteboardType: UTType.plainText.identifier) + UIPasteboard.general.setValue(info, forPasteboardType: UTType.plainText.identifier) ToastViewModel.shared.toastMessage = "Success_send_logs" ToastViewModel.shared.displayToast = true } diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index 6149bb186..16ce445f9 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -453,8 +453,7 @@ class TelecomManager: ObservableObject { } updateRemoteConfVideo(remConfVideoEnabled: remConfVideoEnabled) } - - + if self.remoteConfVideo { Log.info("[Call] Remote video is activated") } diff --git a/Linphone/UI/Main/Conversations/Fragments/ConversationFragment.swift b/Linphone/UI/Main/Conversations/Fragments/ConversationFragment.swift index e8a3e663e..e0fb3c32f 100644 --- a/Linphone/UI/Main/Conversations/Fragments/ConversationFragment.swift +++ b/Linphone/UI/Main/Conversations/Fragments/ConversationFragment.swift @@ -150,8 +150,8 @@ struct ConversationFragment: View { .navigationViewStyle(.stack) } - //swiftlint:disable cyclomatic_complexity - //swiftlint:disable function_body_length + // swiftlint:disable cyclomatic_complexity + // swiftlint:disable function_body_length @ViewBuilder func innerView(geometry: GeometryProxy) -> some View { ZStack { @@ -869,8 +869,8 @@ struct ConversationFragment: View { } } } - //swiftlint:enable cyclomatic_complexity - //swiftlint:enable function_body_length + // swiftlint:enable cyclomatic_complexity + // swiftlint:enable function_body_length @ViewBuilder func imdnOrReactionsSheet() -> some View { diff --git a/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift b/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift index 80319a5d7..28e883319 100644 --- a/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift +++ b/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift @@ -67,7 +67,8 @@ struct MeetingsFragment: View { .default_text_style_500(styleSize: 15) } if model.model!.confInfo.state != ConferenceInfo.State.Cancelled { - Text(model.model!.time) // this time string is formatted for the current device timezone, we use the selected timezone only when displaying details + Text(model.model!.time) + // this time string is formatted for the current device timezone, we use the selected timezone only when displaying details .default_text_style_500(styleSize: 15) } else { Text("Cancelled") diff --git a/Linphone/UI/Main/Viewmodel/AccountModel.swift b/Linphone/UI/Main/Viewmodel/AccountModel.swift index b11c8933f..a920fecfc 100644 --- a/Linphone/UI/Main/Viewmodel/AccountModel.swift +++ b/Linphone/UI/Main/Viewmodel/AccountModel.swift @@ -44,7 +44,7 @@ class AccountModel: ObservableObject { coreDelegate = CoreDelegateStub(onCallStateChanged: { (_: Core, _: Call, _: Call.State, _: String) in self.computeNotificationsCount() - }, onMessagesReceived: { (_: Core, _: ChatRoom, _:[ChatMessage]) in + }, onMessagesReceived: { (_: Core, _: ChatRoom, _: [ChatMessage]) in self.computeNotificationsCount() }, onChatRoomRead: { (_: Core, _: ChatRoom) in self.computeNotificationsCount()