Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32172792
D5854.1765062433.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
672 B
Referenced Files
None
Subscribers
None
D5854.1765062433.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 11:07 PM (12 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5841334
Default Alt Text
D5854.1765062433.diff (672 B)
Attached To
Mode
D5854: [native] toggle reaction action in onPressReact function
Attached
Detach File
Event Timeline
Log In to Comment