Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3280528
D5747.id19902.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
953 B
Referenced Files
None
Subscribers
None
D5747.id19902.diff
View Options
diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js
--- a/keyserver/src/creators/message-creator.js
+++ b/keyserver/src/creators/message-creator.js
@@ -131,6 +131,10 @@
? creationString(viewer, messageData.localID)
: null;
+ const targetMessageID = messageData.targetMessageID
+ ? messageData.targetMessageID
+ : null;
+
messageInsertRows.push([
ids[i],
threadID,
@@ -139,6 +143,7 @@
content,
messageData.time,
creation,
+ targetMessageID,
]);
messageInfos.push(rawMessageInfoFromMessageData(messageData, ids[i]));
}
@@ -166,7 +171,8 @@
}
const messageInsertQuery = SQL`
- INSERT INTO messages(id, thread, user, type, content, time, creation)
+ INSERT INTO messages(id, thread, user, type, content, time,
+ creation, target_message)
VALUES ${messageInsertRows}
`;
await Promise.all([
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 9:13 AM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2521174
Default Alt Text
D5747.id19902.diff (953 B)
Attached To
Mode
D5747: [keyserver] modified createMessages function to handle inserting targetMessageID into the DB
Attached
Detach File
Event Timeline
Log In to Comment