diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index a07b90058..31d048be3 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -211,10 +211,26 @@ class CoreContext: ObservableObject { self.forceRemotePushToMatchVoipPushSettings(account: acc) } + let fm = FileManager.default + + let folderURL = FileUtil.sharedContainerUrl().appendingPathComponent("Library/Images") + if !fm.fileExists(atPath: folderURL.path) { + do { + try fm.createDirectory( + at: folderURL, + withIntermediateDirectories: true, + attributes: nil + ) + print("Images directory created.") + } catch { + print("Error creating directory: \(error)") + } + } else { + print("Images directory already exists.") + } + let container = FileUtil.sharedContainerUrl() let recordingsDir = container.appendingPathComponent("Library/Recordings") - - let fm = FileManager.default if !fm.fileExists(atPath: recordingsDir.path) { do { diff --git a/Linphone/GeneratedGit.swift b/Linphone/GeneratedGit.swift index 21c900577..aa0f7ced3 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 = "fd2730661" + public static let commit = "3b10fbb7c" public static let tag = "6.1.0-alpha" } diff --git a/Linphone/UI/Main/Conversations/ViewModel/ConversationViewModel.swift b/Linphone/UI/Main/Conversations/ViewModel/ConversationViewModel.swift index ba58dd36f..f52b4924e 100644 --- a/Linphone/UI/Main/Conversations/ViewModel/ConversationViewModel.swift +++ b/Linphone/UI/Main/Conversations/ViewModel/ConversationViewModel.swift @@ -521,6 +521,8 @@ class ConversationViewModel: ObservableObject { self.conversationMessagesSection[0].rows[indexMessage!].message.reactions = reactionsTmp } } + }, onFileTransferTerminated: { (message: ChatMessage, content: Content) in + print("filePath ?????? 000") }, onFileTransferProgressIndication: { (message: ChatMessage, content: Content, offset: Int, total: Int) in if let indexMessage = self.conversationMessagesSection[0].rows.firstIndex(where: {$0.eventModel.eventLogId == message.messageId}) { @@ -2324,7 +2326,9 @@ class ConversationViewModel: ObservableObject { fileURL = baseURL.appendingPathComponent("\(counter)_\(contentName)") counter += 1 } - + + print("filePath 11 \(fileURL.path)") + content.filePath = fileURL.path Log.info( "[ConversationViewModel] File \(contentName) will be downloaded at \(content.filePath ?? "NIL")" diff --git a/LinphoneApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/LinphoneApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 9d1a7ef17..baef4fb2c 100644 --- a/LinphoneApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/LinphoneApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -123,7 +123,7 @@ "location" : "https://gitlab.linphone.org/BC/public/linphone-sdk-swift-ios.git", "state" : { "branch" : "beta", - "revision" : "b8d2de798884cea09a4fea52b2b0fdc7e3cd0c20" + "revision" : "47f51cb77ab75911b88b642ddde772c88fe8dc36" } }, { @@ -149,8 +149,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf.git", "state" : { - "revision" : "c169a5744230951031770e27e475ff6eefe51f9d", - "version" : "1.33.3" + "revision" : "5596511fce902e649c403cd4d6d5da1254f142b7", + "version" : "1.35.1" } } ],