Page MenuHomePhabricator

[lib] Simplify messageTitle and introduce default for robotext
ClosedPublic

Authored by ashoat on Feb 3 2023, 12:16 PM.
Tags
None
Referenced Files
F3294182: D6560.diff
Sat, Nov 16, 6:35 PM
Unknown Object (File)
Fri, Nov 8, 11:04 AM
Unknown Object (File)
Mon, Oct 28, 12:39 AM
Unknown Object (File)
Mon, Oct 28, 12:39 AM
Unknown Object (File)
Mon, Oct 28, 12:39 AM
Unknown Object (File)
Mon, Oct 28, 12:38 AM
Unknown Object (File)
Sat, Oct 19, 10:21 PM
Unknown Object (File)
Sat, Oct 19, 9:56 PM
Subscribers

Details

Summary

This diff switches messageTitle to returning EntityText as preparation for ENS resolution. I take this opportunity to simplify the logic for global_viewer, and to delete most of the implementations of messageTitle in favor of a default for robotext.

Test Plan

Tested in combination with following diffs, where the message title is actually used. Also Flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
lib/utils/entity-text.js
243 ↗(On Diff #21958)

Is there an alternative name we could use here that might be more descriptive? Or maybe a comment explaining what hackedEntity means? Naming sounds kind of nefarious idk

This revision is now accepted and ready to land.Feb 4 2023, 11:15 AM
This revision was landed with ongoing or failed builds.Feb 5 2023, 7:53 AM
This revision was automatically updated to reflect the committed changes.