Page MenuHomePhabricator

[native] Introduce `useRemoveUserAvatar` hook
ClosedPublic

Authored by atul on Apr 18 2023, 7:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 5:44 AM
Unknown Object (File)
Wed, Nov 6, 3:31 AM
Unknown Object (File)
Wed, Nov 6, 3:30 AM
Unknown Object (File)
Mon, Nov 4, 11:22 PM
Unknown Object (File)
Fri, Nov 1, 1:03 AM
Unknown Object (File)
Fri, Nov 1, 1:03 AM
Unknown Object (File)
Fri, Nov 1, 1:02 AM
Unknown Object (File)
Fri, Nov 1, 12:54 AM
Subscribers

Details

Summary

We introduce the useRemoveUserAvatar hook so we can unset the user avatar. Will introduce something similar for threads momentarily.


Depends on D7511

Test Plan

Able to clear user avatar:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Apr 18 2023, 7:50 PM
atul edited the summary of this revision. (Show Details)
atul edited the test plan for this revision. (Show Details)
native/avatars/avatar-hooks.js
327–333 ↗(On Diff #25320)

Here's how it looks on Android:

Screenshot_1681873252.png (2×1 px, 145 KB)

ashoat added inline comments.
native/avatars/avatar-hooks.js
327–333 ↗(On Diff #25320)

Thanks for including this

This revision is now accepted and ready to land.Apr 19 2023, 6:20 AM