Page MenuHomePhabricator

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

Authored by atul on Jun 28 2023, 3:10 PM.
Tags
None
Referenced Files
F3520052: D8363.id29221.diff
Sun, Dec 22, 11:18 PM
F3518281: D8363.diff
Sun, Dec 22, 7:26 PM
Unknown Object (File)
Wed, Dec 11, 1:32 PM
Unknown Object (File)
Tue, Dec 10, 9:37 PM
Unknown Object (File)
Sat, Nov 23, 1:20 PM
Unknown Object (File)
Sat, Nov 23, 7:09 AM
Unknown Object (File)
Sat, Nov 23, 7:09 AM
Unknown Object (File)
Sat, Nov 23, 3:36 AM
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.