Page MenuHomePhabricator

[lib] Convert getMessagePreview to hook
ClosedPublic

Authored by ashoat on Jan 24 2023, 4:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Thu, Nov 7, 10:27 PM
Unknown Object (File)
Mon, Nov 4, 11:55 AM
Unknown Object (File)
Sep 28 2024, 10:18 PM
Unknown Object (File)
Sep 28 2024, 4:32 AM
Subscribers

Details

Summary

Since it contains usernames, we'll need to auto-update it when the ENS name comes in. So we need a hook.

Next diff will add ENS fetching functionality to useMessagePreview.

Depends on D6374

Test Plan

Confirmed that all uses of getMessagePreview still worked:

  1. Subchannel/sidebar modal on web
  2. MessagePreview on both native and web

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable