Page MenuHomePhabricator

[lib][native] Extract chatMessageItemEngagementTargetMessageInfo
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 7:06 AM
Unknown Object (File)
Wed, Nov 20, 9:23 AM
Unknown Object (File)
Sun, Nov 10, 1:05 PM
Unknown Object (File)
Sun, Nov 10, 12:17 PM
Unknown Object (File)
Sun, Nov 10, 4:26 AM
Unknown Object (File)
Tue, Nov 5, 4:17 PM
Unknown Object (File)
Thu, Oct 31, 3:17 AM
Unknown Object (File)
Wed, Oct 30, 11:14 PM
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
No Lint Coverage
Unit
No Test Coverage

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

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

I'll rename to chatMessageItemCanReceiveEngagement for consistency with chatMessageItemHasEngagement

lib/shared/chat-message-item-utils.js
43

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