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, Dec 6, 7:38 PM
Unknown Object (File)
Nov 16 2024, 12:24 PM
Unknown Object (File)
Nov 16 2024, 11:24 AM
Unknown Object (File)
Nov 8 2024, 3:01 AM
Unknown Object (File)
Nov 8 2024, 3:01 AM
Unknown Object (File)
Nov 8 2024, 3:01 AM
Unknown Object (File)
Nov 8 2024, 3:01 AM
Unknown Object (File)
Nov 7 2024, 10:27 PM
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