diff --git a/lib/shared/messages/reaction-message-spec.js b/lib/shared/messages/reaction-message-spec.js --- a/lib/shared/messages/reaction-message-spec.js +++ b/lib/shared/messages/reaction-message-spec.js @@ -239,4 +239,21 @@ } return originalMessage.creatorID === params.viewerID; }, + + getLastUpdatedTime: + ( + messageInfo: ReactionMessageInfo | RawReactionMessageInfo, + params: ShowInMessagePreviewParams, + ) => + async () => { + const originalMessage = await params.fetchMessage( + messageInfo.targetMessageID, + ); + if (!originalMessage) { + return null; + } + return originalMessage.creatorID === params.viewerID + ? messageInfo.time + : null; + }, });