Fix profile sharing broken in iOS 17.4

This commit is contained in:
世界 committed 2024-03-19 09:49:26 +08:00
1 parent 7098a84187
commit db8cbfa865
3 files changed
+16 -14

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ public struct TypedProfile: Transferable, Codable {
public static var transferRepresentation: some TransferRepresentation {
FileRepresentation(contentType: .profile) { typed in
try SentTransferredFile(typed.content.generateShareFile())
try SentTransferredFile(typed.content.generateShareFile(), allowAccessingOriginalFile: true)
} importing: { received in
try TypedProfile(.from(Data(contentsOf: received.file)))
}