Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
reactions: Pass missing vote_text to Handlebars template.
Anders Kaseorg508b9f7bd039
diff --git a/web/src/reactions.js b/web/src/reactions.jsindex 55962d12474..2762f42c8f6 100644--- a/web/src/reactions.js+++ b/web/src/reactions.js@@ -316,6 +316,7 @@ view.insert_new_reaction = function (clean_reaction_object, message, user_id) {context.emoji_alt_code = user_settings.emojiset === "text";context.is_realm_emoji =context.reaction_type === "realm_emoji" || context.reaction_type === "zulip_extra_emoji";+ context.vote_text = ""; // Updated belowif (user_id === page_params.user_id) {context.class = "message_reaction reacted";diff --git a/web/tests/reactions.test.js b/web/tests/reactions.test.jsindex 56ef6f2d6fe..f9f30a27499 100644--- a/web/tests/reactions.test.js+++ b/web/tests/reactions.test.js@@ -826,6 +826,7 @@ test("view.insert_new_reaction (me w/unicode emoji)", ({mock_template}) => {label: "translated: You (click to remove) reacted with :8ball:",reaction_type: clean_reaction_object.reaction_type,is_realm_emoji: false,+ vote_text: "",});return "<new-reaction-stub>";});@@ -891,6 +892,7 @@ test("view.insert_new_reaction (them w/zulip emoji)", ({mock_template}) => {label: "translated: Bob van Roberts reacted with :zulip:",still_url: undefined,reaction_type: clean_reaction_object.reaction_type,+ vote_text: "",});return "<new-reaction-stub>";});