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
F3184577: D7638.id25909.diff
Fri, Nov 8, 11:08 AM
F3184492: D7638.id25908.diff
Fri, Nov 8, 10:56 AM
F3183668: D7638.id25907.diff
Fri, Nov 8, 9:51 AM
F3183651: D7638.id25793.diff
Fri, Nov 8, 9:51 AM
F3183643: D7638.id25867.diff
Fri, Nov 8, 9:49 AM
F3182120: D7638.diff
Fri, Nov 8, 7:32 AM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
Unknown Object (File)
Thu, Oct 31, 2:54 PM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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.