Page MenuHomePhabricator

D5854.id19920.diff
No OneTemporary

D5854.id19920.diff

diff --git a/native/chat/reaction-message-utils.js b/native/chat/reaction-message-utils.js
--- a/native/chat/reaction-message-utils.js
+++ b/native/chat/reaction-message-utils.js
@@ -33,11 +33,17 @@
const threadID = route.params.item.threadInfo.id;
invariant(threadID, 'threadID should be set');
+ const reactionInput = '👍';
+ const viewerReacted = route.params.item.reactions.get(reactionInput)
+ ?.viewerReacted;
+
+ const action = viewerReacted ? 'remove_reaction' : 'add_reaction';
+
sendReaction(
messageID,
threadID,
- '👍',
- 'add_reaction',
+ reactionInput,
+ action,
dispatchFunctions,
bindServerCall,
);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:48 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2498002
Default Alt Text
D5854.id19920.diff (672 B)

Event Timeline