Page MenuHomePhabricator

D5803.id19120.diff
No OneTemporary

D5803.id19120.diff

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,
+ unsettingReaction: content.unsettingReaction,
+ };
+ },
+
rawMessageInfoFromClientDB(
clientDBMessageInfo: ClientDBMessageInfo,
): RawReactionMessageInfo {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 7:50 AM (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578962
Default Alt Text
D5803.id19120.diff (868 B)

Event Timeline