Page MenuHomePhabricator

D6118.diff
No OneTemporary

D6118.diff

diff --git a/keyserver/src/responders/message-responders.js b/keyserver/src/responders/message-responders.js
--- a/keyserver/src/responders/message-responders.js
+++ b/keyserver/src/responders/message-responders.js
@@ -192,6 +192,7 @@
const sendReactionMessageRequestInputValidator = tShape({
threadID: t.String,
+ localID: t.String,
targetMessageID: t.String,
reaction: tString('👍'),
action: t.enums.of(['add_reaction', 'remove_reaction']),
@@ -203,7 +204,7 @@
const request: SendReactionMessageRequest = input;
await validateInput(viewer, sendReactionMessageRequestInputValidator, input);
- const { threadID, targetMessageID, reaction, action } = request;
+ const { threadID, localID, targetMessageID, reaction, action } = request;
if (!targetMessageID || !reaction) {
throw new ServerError('invalid_parameters');
@@ -247,6 +248,7 @@
const messageData: ReactionMessageData = {
type: messageTypes.REACTION,
threadID,
+ localID,
creatorID: viewer.id,
time: Date.now(),
targetMessageID,
diff --git a/lib/actions/message-actions.js b/lib/actions/message-actions.js
--- a/lib/actions/message-actions.js
+++ b/lib/actions/message-actions.js
@@ -210,6 +210,7 @@
) => Promise<SendReactionMessageResult>) => async request => {
const response = await callServerEndpoint('create_reaction_message', {
threadID: request.threadID,
+ localID: request.localID,
targetMessageID: request.targetMessageID,
reaction: request.reaction,
action: request.action,

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 10:46 AM (17 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2699726
Default Alt Text
D6118.diff (1 KB)

Event Timeline