Page MenuHomePhabricator

[lib] Convert getMessagePreview to hook
ClosedPublic

Authored by ashoat on Jan 24 2023, 4:46 PM.
Tags
None
Referenced Files
F2832392: D6375.id21337.diff
Sat, Sep 28, 4:32 AM
F2832391: D6375.id21288.diff
Sat, Sep 28, 4:32 AM
F2832374: D6375.id.diff
Sat, Sep 28, 4:31 AM
F2832359: D6375.diff
Sat, Sep 28, 4:23 AM
Unknown Object (File)
Thu, Sep 26, 10:30 PM
Unknown Object (File)
Tue, Sep 24, 3:22 AM
Unknown Object (File)
Aug 27 2024, 6:40 PM
Unknown Object (File)
Aug 20 2024, 1:53 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