mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 20:08:31 +00:00
Fix various warnings
This commit is contained in:
parent
62aaf57b3f
commit
9f7c4e7304
5 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -453,8 +453,7 @@ class TelecomManager: ObservableObject {
|
|||
}
|
||||
updateRemoteConfVideo(remConfVideoEnabled: remConfVideoEnabled)
|
||||
}
|
||||
|
||||
|
||||
|
||||
if self.remoteConfVideo {
|
||||
Log.info("[Call] Remote video is activated")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue