From 052534230555879bca68d608407b3bf4efae4954 Mon Sep 17 00:00:00 2001 From: Paul Von Schrottky Date: Mon, 14 Mar 2022 16:13:21 -0300 Subject: [PATCH 1/2] Allow users to change profile picture This bug fix works around a Photo Library permissions by opening the album selector instead of the "self-portraits" album. --- .../Gravatar/GravatarPickerViewController.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Me/My Profile/Gravatar/GravatarPickerViewController.swift b/WordPress/Classes/ViewRelated/Me/My Profile/Gravatar/GravatarPickerViewController.swift index 69858c1cb752..0cdd8432c7a9 100644 --- a/WordPress/Classes/ViewRelated/Me/My Profile/Gravatar/GravatarPickerViewController.swift +++ b/WordPress/Classes/ViewRelated/Me/My Profile/Gravatar/GravatarPickerViewController.swift @@ -15,16 +15,7 @@ class GravatarPickerViewController: UIViewController, WPMediaPickerViewControlle fileprivate var mediaPickerViewController: WPNavigationMediaPickerViewController! - fileprivate lazy var mediaPickerAssetDataSource: WPPHAssetDataSource? = { - let collectionsFetchResult = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumSelfPortraits, options: nil) - guard let assetCollection = collectionsFetchResult.firstObject else { - return nil - } - - let dataSource = WPPHAssetDataSource() - dataSource.setSelectedGroup(PHAssetCollectionForWPMediaGroup(collection: assetCollection, mediaType: .image)) - return dataSource - }() + fileprivate lazy var mediaPickerAssetDataSource = WPPHAssetDataSource() // MARK: - View Lifecycle Methods From 8f2d076e85db6a29ec3d1b0d3451e347bb675da5 Mon Sep 17 00:00:00 2001 From: Paul Von Schrottky Date: Mon, 14 Mar 2022 19:24:13 -0300 Subject: [PATCH 2/2] Add release notes for profile picture bug fix --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 935f249b4914..d39110e69236 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -12,6 +12,7 @@ * [*] Weekly Roundup: We made some further changes to try and ensure that Weekly Roundup notifications are showing up for everybody who's enabled them [#18029] * [*] Block editor: Autocorrected Headings no longer apply bold formatting if they weren't already bold. [#17844] * [***] Block editor: Support for multiple color palettes [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4588] +* [**] User profiles: Fixed issue where the app wasn't displaying any of the device photos which the user had granted the app access to. 19.3 -----