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.

hotkey: Fix `=` to toggle reaction results in error.

Aman Agrawal96eb49d947d0
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 122c60621bc..b38d9103d97 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -1229,7 +1229,8 @@ export function process_hotkey(e, hotkey) {
return true;
}
- reactions.toggle_emoji_reaction(msg, first_reaction.emoji_name);
+ const canonical_name = emoji.get_emoji_name(first_reaction.emoji_code);
+ reactions.toggle_emoji_reaction(msg, canonical_name);
return true;
}
case "toggle_topic_visibility_policy":