diff --git a/lib/shared/message-utils.js b/lib/shared/message-utils.js --- a/lib/shared/message-utils.js +++ b/lib/shared/message-utils.js @@ -289,16 +289,24 @@ }); } +function reactionMessagePreview(): string { + return 'liked a message'; +} + function messagePreviewText( messageInfo: PreviewableMessageInfo, threadInfo: ThreadInfo, ): string { if ( messageInfo.type === messageTypes.IMAGES || - messageInfo.type === messageTypes.MULTIMEDIA + messageInfo.type === messageTypes.MULTIMEDIA || + messageInfo.type === messageTypes.REACTION ) { const creator = stringForUser(messageInfo.creator); - const preview = multimediaMessagePreview(messageInfo); + const preview = + messageInfo.type === messageTypes.REACTION + ? reactionMessagePreview() + : multimediaMessagePreview(messageInfo); return `${creator} ${preview}`; } return robotextToRawString(robotextForMessageInfo(messageInfo, threadInfo)); diff --git a/lib/types/message-types.js b/lib/types/message-types.js --- a/lib/types/message-types.js +++ b/lib/types/message-types.js @@ -326,7 +326,9 @@ | CreateSidebarMessageInfo; export type PreviewableMessageInfo = | RobotextMessageInfo - | MultimediaMessageInfo; + | MultimediaMessageInfo + | ReactionMessageInfo; + export type SidebarSourceMessageInfo = { +type: 17, +id: string,