Skip to content

Commit

Permalink
Fix issue preventing users from changing profile picture (#18132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Mar 15, 2022
2 parents 27108ee + 8f2d076 commit 422a490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 422a490

Please sign in to comment.