diff --git a/web/src/copy_messages.ts b/web/src/copy_messages.ts index 208aab26ad..184eb02e8b 100644 --- a/web/src/copy_messages.ts +++ b/web/src/copy_messages.ts @@ -328,7 +328,10 @@ export function analyze_selection(selection: Selection): { $startc = $(range.startContainer); start_data = find_boundary_tr( - $startc.parents(".selectable_row, .message_header").first(), + $startc + .parents(".selectable_row, .message_header") + .not(".overlay-message-header") + .first(), ($row) => $row.next(), ); if (start_data === undefined) { diff --git a/web/templates/draft.hbs b/web/templates/draft.hbs index bd1a553b5e..ff16b96d45 100644 --- a/web/templates/draft.hbs +++ b/web/templates/draft.hbs @@ -1,7 +1,7 @@