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
Unknown Object (File)
Fri, Feb 21, 1:29 AM
Unknown Object (File)
Fri, Feb 21, 1:29 AM
Unknown Object (File)
Thu, Feb 20, 2:28 PM
Unknown Object (File)
Tue, Feb 4, 6:26 AM
Unknown Object (File)
Fri, Jan 31, 11:40 PM
Unknown Object (File)
Jan 15 2025, 4:51 PM
Unknown Object (File)
Jan 9 2025, 9:42 AM
Unknown Object (File)
Jan 9 2025, 9:42 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
Branch
fix-hover-background-color
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

benschac added inline comments.
web/chat/message-preview.react.js
50

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