Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3359201
D5803.id19120.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
868 B
Referenced Files
None
Subscribers
None
D5803.id19120.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5803: [lib] introduced rawMessageInfoFromServerDBRow function to reaction message spec
Attached
Detach File
Event Timeline
Log In to Comment