Page MenuHomePhabricator

[lib] Consolidate `baseUpdateImageUserAvatar` into `baseSetUserAvatar`
ClosedPublic

Authored by atul on Jun 28 2023, 3:10 PM.
Tags
None
Referenced Files
F2145178: D8363.id29220.diff
Sat, Jun 29, 9:34 PM
Unknown Object (File)
Wed, Jun 26, 6:59 AM
Unknown Object (File)
Mon, Jun 24, 2:48 PM
Unknown Object (File)
Thu, Jun 13, 12:27 AM
Unknown Object (File)
Fri, Jun 7, 11:40 AM
Unknown Object (File)
Tue, Jun 4, 2:49 AM
Unknown Object (File)
Mon, Jun 3, 11:00 PM
Unknown Object (File)
Mon, Jun 3, 10:59 PM
Subscribers

Details

Summary

After removing all the platform-specific stuff from baseUpdateImageUserAvatar and baseSetUserAvatar, there was one line different between them. Seemed simpler to handle with a conditional than two separate functions. The less code the better?


Depends on D8360

Test Plan

Close reading, made sure spinner continued to behave as expected when updating image avatar on native.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jun 28 2023, 3:10 PM
This revision is now accepted and ready to land.Jun 28 2023, 6:48 PM

resolve merge conflicts and land

This revision was landed with ongoing or failed builds.Jul 28 2023, 2:47 PM
This revision was automatically updated to reflect the committed changes.