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
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
Unknown Object (File)
Nov 8 2024, 11:04 AM
Unknown Object (File)
Oct 28 2024, 12:39 AM
Unknown Object (File)
Oct 28 2024, 12:39 AM
Unknown Object (File)
Oct 28 2024, 12:39 AM
Unknown Object (File)
Oct 28 2024, 12:38 AM
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.