Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3523959
D6118.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6118.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6118: [keyserver/lib] introuce localID field to sendReactionMessage action and reactionMessageCreationResponder
Attached
Detach File
Event Timeline
Log In to Comment