Page MenuHomePhabricator

[lib][native] Extract chatMessageItemEngagementTargetMessageInfo
ClosedPublic

Authored by ashoat on Wed, Oct 9, 8:30 PM.
Tags
None
Referenced Files
F3099541: D13685.id45126.diff
Tue, Oct 29, 11:13 PM
Unknown Object (File)
Mon, Oct 28, 3:48 PM
Unknown Object (File)
Wed, Oct 23, 9:43 PM
Unknown Object (File)
Wed, Oct 23, 6:59 AM
Unknown Object (File)
Tue, Oct 22, 10:51 AM
Unknown Object (File)
Tue, Oct 22, 10:20 AM
Unknown Object (File)
Sat, Oct 19, 9:12 AM
Unknown Object (File)
Sat, Oct 19, 4:26 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested review of this revision.Wed, Oct 9, 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.Fri, Oct 11, 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.Sun, Oct 13, 5:29 PM

chatMessageInfoItemTargetableMessageInfo -> chatMessageItemEngagementTargetMessageInfo