Page MenuHomePhabricator

[lib] Update thick thread avatars logic
ClosedPublic

Authored by tomek on Wed, Sep 25, 8:33 AM.
Tags
None
Referenced Files
F2837939: D13462.diff
Sat, Sep 28, 8:13 PM
Unknown Object (File)
Sat, Sep 28, 2:46 PM
Unknown Object (File)
Wed, Sep 25, 12:22 PM
Subscribers
None

Details

Summary

We should correctly select thick thread avatar based on user avatars.

https://linear.app/comm/issue/ENG-9374/thread-avatars-not-using-user-avatars-for-dms

Test Plan

Created personal and private thick threads and verified that on a thread list their avatars are correct, and before this diff they were incorrect.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added inline comments.
lib/shared/avatar-utils.js
7 ↗(On Diff #44552)

Shortened the import

293 ↗(On Diff #44552)

Simplified this expression - it didn't make too much sense in the previous form

tomek requested review of this revision.Wed, Sep 25, 8:51 AM
This revision is now accepted and ready to land.Wed, Sep 25, 8:54 AM
This revision was automatically updated to reflect the committed changes.