Page MenuHomePhabricator

[native] Return without error if avatar image `selection` is empty
ClosedPublic

Authored by atul on Apr 26 2023, 3:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:51 PM
Unknown Object (File)
Fri, Oct 18, 11:49 AM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-3803/error-message-when-user-exits-the-select-image-flow-for-avatar

We want to return silently instead of throwing exception + displaying alert.

Test Plan
  1. Select image
  2. Close image gallery without picking an image
  3. Observe no alert

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Apr 26 2023, 3:41 PM
ginsu requested changes to this revision.Apr 26 2023, 4:38 PM

I think it would also be good to update uploadSelectedMedia's parameter type which is currently ?MediaLibrarySelection to just MediaLibrarySelection in this diff as well

This revision now requires changes to proceed.Apr 26 2023, 4:38 PM
In D7638#226562, @ginsu wrote:

I think it would also be good to update uploadSelectedMedia's parameter type which is currently ?MediaLibrarySelection to just MediaLibrarySelection in this diff as well

True, will update in a sec

This revision is now accepted and ready to land.Apr 27 2023, 1:36 PM
This revision was landed with ongoing or failed builds.Apr 28 2023, 11:00 AM
This revision was automatically updated to reflect the committed changes.