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
F3527794: D6560.id22041.diff
Tue, Dec 24, 6:40 AM
F3527790: D6560.id22000.diff
Tue, Dec 24, 6:40 AM
F3527789: D6560.id21958.diff
Tue, Dec 24, 6:40 AM
F3527775: D6560.id.diff
Tue, Dec 24, 6:39 AM
F3527767: D6560.diff
Tue, Dec 24, 6:36 AM
Unknown Object (File)
Nov 16 2024, 9:57 PM
Unknown Object (File)
Nov 16 2024, 9:54 PM
Unknown Object (File)
Nov 16 2024, 6:35 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

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.