Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

reactions: Destructure during make..reaction call from set..reaction.

YashRE425e194afda392
diff --git a/static/js/reactions.js b/static/js/reactions.js
index a0f79f401aa..8b093992921 100644
--- a/static/js/reactions.js
+++ b/static/js/reactions.js
@@ -502,13 +502,7 @@ export function set_clean_reactions(message) {
message.clean_reactions.set(
local_id,
- make_clean_reaction({
- local_id,
- user_ids,
- reaction_type: reaction.reaction_type,
- emoji_name: reaction.emoji_name,
- emoji_code: reaction.emoji_code,
- }),
+ make_clean_reaction({local_id, user_ids, ...reaction}),
);
}
}