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.

popovers: Hide message action popover on revealing muted user messsage.

m-e-l-u-h-a-n61cc26667dbe
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 195450ddac6..00eac803816 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -244,6 +244,11 @@ export function initialize() {
});
$("body").on("click", ".reveal_hidden_message", (e) => {
+ // Hide actions popover to keep its options
+ // in sync with revealed/hidden state of
+ // muted user's message.
+ popovers.hide_actions_popover();
+
const message_id = rows.id($(e.currentTarget).closest(".message_row"));
message_lists.current.view.reveal_hidden_message(message_id);
e.stopPropagation();