Page MenuHomePhabricator

[native] improve factoring out redundant logic for saving an image thread avatar
ClosedPublic

Authored by ginsu on Apr 26 2023, 10:41 PM.
Tags
None
Referenced Files
F3245307: D7645.diff
Thu, Nov 14, 5:53 PM
Unknown Object (File)
Tue, Nov 5, 8:59 AM
Unknown Object (File)
Mon, Nov 4, 8:32 AM
Unknown Object (File)
Sun, Oct 27, 12:55 AM
Unknown Object (File)
Sun, Oct 27, 12:50 AM
Unknown Object (File)
Mon, Oct 21, 4:05 PM
Unknown Object (File)
Mon, Oct 21, 2:07 AM
Unknown Object (File)
Mon, Oct 21, 2:07 AM
Subscribers

Details

Summary

This diff factors out the update image avatar logic into its own function. This logic is directly shared and used by both the edit image avatar through gallery and camera. So I factored this logic out here in anticipation of the introduction of the edit thread avatar camera modal which is introduced in the next diff

Depends on D7644

Test Plan

flow and setting an image thread avatar still works with the expected behavior

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Same feedback as in D7628:

It would be good to explain the reason for the changes here. Are these changes being made because you're going to reuse the factored-out code in a later diff in the stack, so it makes sense to factor out the shared logic here?

This revision is now accepted and ready to land.Apr 27 2023, 10:27 AM