diff --git a/native/chat/chat-item-height-measurer.react.js b/native/chat/chat-item-height-measurer.react.js --- a/native/chat/chat-item-height-measurer.react.js +++ b/native/chat/chat-item-height-measurer.react.js @@ -93,6 +93,7 @@ endsCluster: item.endsCluster, threadCreatedFromMessage: item.threadCreatedFromMessage, pendingUploads, + reactions: item.reactions, ...sizes, }; } @@ -117,6 +118,7 @@ endsCluster: item.endsCluster, threadCreatedFromMessage: item.threadCreatedFromMessage, contentHeight: height, + reactions: item.reactions, }; } else { invariant( @@ -134,6 +136,7 @@ threadCreatedFromMessage: item.threadCreatedFromMessage, robotext: item.robotext, contentHeight: height, + reactions: item.reactions, }; } }, diff --git a/native/types/chat-types.js b/native/types/chat-types.js --- a/native/types/chat-types.js +++ b/native/types/chat-types.js @@ -3,6 +3,7 @@ import type { LocalMessageInfo, MultimediaMessageInfo, + ReactionMessageInfo, RobotextMessageInfo, } from 'lib/types/message-types'; import type { TextMessageInfo } from 'lib/types/messages/text'; @@ -21,6 +22,7 @@ +robotext: string, +threadCreatedFromMessage: ?ThreadInfo, +contentHeight: number, + +reactions?: $ReadOnlyArray, }; export type ChatTextMessageInfoItemWithHeight = { @@ -34,6 +36,7 @@ +endsCluster: boolean, +contentHeight: number, +threadCreatedFromMessage: ?ThreadInfo, + +reactions?: $ReadOnlyArray, }; export type MultimediaContentSizes = { @@ -53,6 +56,7 @@ +endsCluster: boolean, +threadCreatedFromMessage: ?ThreadInfo, +pendingUploads: ?MessagePendingUploads, + +reactions?: $ReadOnlyArray, }; export type ChatMessageInfoItemWithHeight =