Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
rows: Fix logic for finding drafts rows.
Tim Abbott07769aec4b30
diff --git a/web/src/rows.js b/web/src/rows.jsindex 72b54651eb7..acb1d70dfa1 100644--- a/web/src/rows.js+++ b/web/src/rows.js@@ -70,13 +70,13 @@ export function visible_range(start_id, end_id) {return rows;}-export function is_draft_row($row) {- return $row.find("#drafts_table .restore-overlay-message").length >= 1;+export function is_overlay_row($row) {+ return $row.closest(".overlay-message-row").length >= 1;}export function id($message_row) {- if (is_draft_row($message_row)) {- blueslip.error("Drafts have no zid");+ if (is_overlay_row($message_row)) {+ blueslip.error("Drafts and scheduled messages have no zid");return undefined;}