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)
Wed, Nov 27, 1:42 AM
Unknown Object (File)
Sun, Nov 24, 7:07 PM
Unknown Object (File)
Fri, Nov 22, 10:52 AM
Unknown Object (File)
Thu, Nov 21, 3:29 PM
Unknown Object (File)
Wed, Nov 6, 3:31 AM
Unknown Object (File)
Tue, Nov 5, 4:32 AM
Unknown Object (File)
Mon, Nov 4, 11:14 PM
Unknown Object (File)
Mon, Nov 4, 11: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