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
Unknown Object (File)
Thu, May 23, 5:06 PM
Unknown Object (File)
Thu, May 23, 5:06 PM
Unknown Object (File)
Sat, May 18, 4:05 AM
Unknown Object (File)
Tue, May 14, 7:42 AM
Unknown Object (File)
Tue, May 14, 12:38 AM
Unknown Object (File)
Mon, May 13, 9:51 AM
Unknown Object (File)
Mon, May 13, 9:51 AM
Unknown Object (File)
Mon, May 13, 7:24 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
Lint Not Applicable
Unit
Tests Not Applicable

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