HomePhabricator
Diffusion Comm dafc20007fe9

[lib] Set viewer's username in pending threads

Description

[lib] Set viewer's username in pending threads

Summary:
Before this diff, createPendingThread would include usernames for everybody EXCEPT the viewer.

But we need to know the viewer's username so that if anybody @-tagged the viewer in the original message, then the viewer's username is properly bolded.

(We also may need to fetch an ENS name for the viewer, in case the ENS name was @-tagged.)

To make sure we always have the viewer's username available, we update createPendingThread here to take a LoggedInUserInfo instead of a viewerID.

Depends on D6758

Test Plan: In combination with diffs I haven't submitted yet, I made sure that @-mentions of the viewer get bolded in a pending sidebar

Reviewers: atul

Reviewed By: atul

Subscribers: tomek

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

Details

Provenance
ashoatAuthored on Feb 16 2023, 12:37 PM
Reviewer
atul
Differential Revision
D6759: [lib] Set viewer's username in pending threads
Parents
rCOMM5e706e8d0be6: [lib][native][web] Include current user as member when calling…
Branches
Unknown
Tags
Unknown