Page MenuHomePhabricator

[native] Introduce `useRemoveUserAvatar` hook
ClosedPublic

Authored by atul on Apr 18 2023, 7:48 PM.
Tags
None
Referenced Files
F1933241: D7512.diff
Sun, Jun 2, 10:11 AM
Unknown Object (File)
Thu, May 30, 11:52 AM
Unknown Object (File)
Thu, May 30, 11:52 AM
Unknown Object (File)
Sun, May 26, 6:08 AM
Unknown Object (File)
Sat, May 18, 3:50 AM
Unknown Object (File)
Thu, May 16, 9:47 AM
Unknown Object (File)
Mon, May 13, 12:13 PM
Unknown Object (File)
Sat, May 11, 4:00 PM
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