Page MenuHomePhabricator

[lib][native] Extract chatMessageItemEngagementTargetMessageInfo
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 1:09 AM
Unknown Object (File)
Nov 22 2024, 7:06 AM
Unknown Object (File)
Nov 20 2024, 9:23 AM
Unknown Object (File)
Nov 10 2024, 1:05 PM
Unknown Object (File)
Nov 10 2024, 12:17 PM
Unknown Object (File)
Nov 10 2024, 4:26 AM
Unknown Object (File)
Nov 5 2024, 4:17 PM
Unknown Object (File)
Oct 31 2024, 3:17 AM
Subscribers
None

Details

Summary

This will make it easier to change its behavior in a later diff.

Depends on D13684

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested review of this revision.Oct 9 2024, 9:59 PM
tomek added inline comments.
lib/shared/chat-message-item-utils.js
43 ↗(On Diff #45044)

I'm not sure what this name means. What makes a message targetable?

This revision is now accepted and ready to land.Oct 11 2024, 6:12 AM
lib/shared/chat-message-item-utils.js
43 ↗(On Diff #45044)

I'll rename to chatMessageItemCanReceiveEngagement for consistency with chatMessageItemHasEngagement

lib/shared/chat-message-item-utils.js
43 ↗(On Diff #45044)

Actually, it returns a MessageInfo so that doesn't make sense. I'll go with chatMessageItemEngagementTargetMessageInfo

ashoat retitled this revision from [lib][native] Extract chatMessageInfoItemTargetableMessageInfo to [lib][native] Extract chatMessageItemEngagementTargetMessageInfo.Oct 13 2024, 5:29 PM

chatMessageInfoItemTargetableMessageInfo -> chatMessageItemEngagementTargetMessageInfo