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 @@ -48,6 +48,21 @@ return messagePreviewText(validMessageInfo, threadInfo); }, + rawMessageInfoFromServerDBRow(row: Object): RawReactionMessageInfo { + const content = JSON.parse(row.content); + + return { + type: messageTypes.REACTION, + id: row.id.toString(), + threadID: row.threadID.toString(), + time: row.time, + creatorID: row.creatorID.toString(), + targetMessageID: content.targetMessageID, + reaction: content.reaction, + action: content.action, + }; + }, + rawMessageInfoFromClientDB( clientDBMessageInfo: ClientDBMessageInfo, ): RawReactionMessageInfo {