Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
copy_messages: Improve end_id detection in analyze_selection.
apoorvapendsed8d49f744014
diff --git a/web/src/copy_messages.ts b/web/src/copy_messages.tsindex f0844ef6cc5..53a22c90e8c 100644--- a/web/src/copy_messages.ts+++ b/web/src/copy_messages.ts@@ -407,7 +407,7 @@ export function analyze_selection(selection: Selection): {}function get_end_tr_from_endc($endc: JQuery<Node>): JQuery {- if ($endc.attr("id") === "bottom_whitespace" || $endc.attr("id") === "compose_close") {+ if ($endc.attr("id") === "bottom_whitespace" || $endc.closest("#compose").length > 0) {// If the selection ends in the bottom whitespace, we should// act as though the selection ends on the final message.// This handles the issue that Chrome seems to like selecting