Page MenuHomePhabricator

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

Authored by atul on Jun 28 2023, 3:10 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Nov 1 2024, 5:36 PM
Unknown Object (File)
Nov 1 2024, 5:33 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.