HomePhabricator
Diffusion Comm 04ec88164e7d

[lib] introduce savedEmojiAvatarSelectorForThread selector

Description

[lib] introduce savedEmojiAvatarSelectorForThread selector

Summary:
Similar logic to D7402 but for thread avatars. In addition to creating the selector, I needed to create a small utility function: getAvatarForThread which factors out most of the logic in useAvatarForThread but now we can easily use this logic in the savedEmojiAvatarSelectorForThread selector

Depends on D7424

Test Plan:
All thread avatars still render properly (shows that getAvatarForThread works as expected) , and the reset functionality for thread avatars behaves as expected:

Reviewers: ashoat, atul

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7426

Details

Provenance
ginsuAuthored on Apr 14 2023, 11:31 AM
Reviewer
ashoat
Differential Revision
D7426: [lib] introduce savedEmojiAvatarSelectorForThread selector
Parents
rCOMM3ae2c4ef4551: [keyserver] Get rid of `versions` table and related endpoints
Branches
Unknown
Tags
Unknown