Page MenuHomePhabricator

[lib] Set viewer's username in pending threads
ClosedPublic

Authored by ashoat on Feb 17 2023, 6:58 AM.
Tags
None
Referenced Files
F3251232: D6759.diff
Fri, Nov 15, 5:23 PM
Unknown Object (File)
Fri, Nov 1, 10:38 AM
Unknown Object (File)
Fri, Nov 1, 10:38 AM
Unknown Object (File)
Fri, Nov 1, 10:37 AM
Unknown Object (File)
Fri, Nov 1, 10:37 AM
Unknown Object (File)
Fri, Nov 1, 10:16 AM
Unknown Object (File)
Wed, Oct 30, 1:53 AM
Unknown Object (File)
Wed, Oct 30, 1:53 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 17 2023, 7:15 AM
Harbormaster failed remote builds in B16576: Diff 22677!

When loading a URL for a pending chat (non-sidebar) on the keyserver side, filter out any deleted users from the pending chat

This revision is now accepted and ready to land.Feb 20 2023, 1:41 PM