Page MenuHomePhabricator

D5747.id19902.diff
No OneTemporary

D5747.id19902.diff

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

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)

Event Timeline