Page MenuHomePhabricator

[lib] introduce getDefaultAvatar helper function
ClosedPublic

Authored by ginsu on Mar 21 2023, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 8:30 AM
Unknown Object (File)
Mar 7 2024, 4:01 AM
Unknown Object (File)
Mar 7 2024, 4:01 AM
Unknown Object (File)
Mar 7 2024, 4:01 AM
Unknown Object (File)
Mar 5 2024, 11:43 PM
Unknown Object (File)
Feb 27 2024, 12:14 PM
Unknown Object (File)
Feb 27 2024, 12:14 PM
Unknown Object (File)
Feb 27 2024, 12:14 PM
Subscribers

Details

Summary

This logic will be used for both user and thread avatars so introduced getDefaultAvatar which is a helper function so I wouldn't need to copy/paste the logic in both places

Test Plan

flow and user avatars still render as expected with this new helper function. This diff will be further tested in subsequent diffs as well

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable