From 6c7c10ebc0eefda6fb6b44805e82e6fa9e517d72 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 13 Jun 2023 08:49:15 +0300 Subject: [PATCH] Fixes #1072 - Crashes when trying to save media to the photo library --- ElementX/SupportingFiles/Info.plist | 2 ++ ElementX/SupportingFiles/target.yml | 1 + changelog.d/1072.bugfix | 1 + 3 files changed, 4 insertions(+) create mode 100644 changelog.d/1072.bugfix diff --git a/ElementX/SupportingFiles/Info.plist b/ElementX/SupportingFiles/Info.plist index 6beed9d9b..0880553dd 100644 --- a/ElementX/SupportingFiles/Info.plist +++ b/ElementX/SupportingFiles/Info.plist @@ -30,6 +30,8 @@ The camera is used to take and upload photos and videos. NSMicrophoneUsageDescription The microphone is used to take videos. + NSPhotoLibraryAddUsageDescription + Allows saving photos and videos to your library. NSUserActivityTypes INSendMessageIntent diff --git a/ElementX/SupportingFiles/target.yml b/ElementX/SupportingFiles/target.yml index 4938c51c7..bb0b86d19 100644 --- a/ElementX/SupportingFiles/target.yml +++ b/ElementX/SupportingFiles/target.yml @@ -64,6 +64,7 @@ targets: ] NSCameraUsageDescription: The camera is used to take and upload photos and videos. NSMicrophoneUsageDescription: The microphone is used to take videos. + NSPhotoLibraryAddUsageDescription: Allows saving photos and videos to your library. UIBackgroundModes: [ fetch ] diff --git a/changelog.d/1072.bugfix b/changelog.d/1072.bugfix new file mode 100644 index 000000000..752693153 --- /dev/null +++ b/changelog.d/1072.bugfix @@ -0,0 +1 @@ +Fixed crashes when trying to save media to the photo library \ No newline at end of file