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.

message_edit: Suppress message controls popover in edit views.

Karl Stolleyb98bae948c3b
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.js
index d5300789448..6de87c33945 100644
--- a/web/src/popover_menus.js
+++ b/web/src/popover_menus.js
@@ -220,10 +220,13 @@ export function register_popover_menu(target, popover_props) {
}
export function toggle_message_actions_menu(message) {
- if (message.locally_echoed) {
+ if (message.locally_echoed || message_edit.is_editing(message.id)) {
// Don't open the popup for locally echoed messages for now.
// It creates bugs with things like keyboard handlers when
// we get the server response.
+ // We also suppress the popup for messages in an editing state,
+ // including previews, when a user tries to reach them from the
+ // keyboard.
return true;
}