Page MenuHomePhabricator

[web] [refactor] simplify username logic in message preview
ClosedPublic

Authored by benschac on Mar 23 2022, 12:33 PM.
Tags
None
Referenced Files
F4947096: D3506.diff
Wed, Mar 19, 12:36 PM
Unknown Object (File)
Wed, Mar 19, 1:23 AM
Unknown Object (File)
Fri, Mar 14, 8:03 AM
Unknown Object (File)
Fri, Mar 14, 8:03 AM
Unknown Object (File)
Fri, Mar 14, 8:03 AM
Unknown Object (File)
Thu, Mar 13, 7:53 AM
Unknown Object (File)
Tue, Mar 11, 5:14 AM
Unknown Object (File)
Tue, Mar 11, 5:14 AM

Details

Summary

simplify rendering logic for username in message preview

Test Plan

username logic is the same as production. No new functionality

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

benschac added inline comments.
web/chat/message-preview.react.js
50 ↗(On Diff #10632)

This logic is wrong.

ashoat added inline comments.
web/chat/message-preview.react.js
28 ↗(On Diff #10665)

Let's move this closer to where it's used. Line 48 makes the most sense

This revision is now accepted and ready to land.Mar 24 2022, 6:02 PM