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_list_view: Check if the sticky header is not from overlays.

Aman Agrawal753181bee9e8
diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts
index 2ddf65008d2..b2aa4e2d39d 100644
--- a/web/src/message_list_view.ts
+++ b/web/src/message_list_view.ts
@@ -2148,7 +2148,8 @@ export class MessageListView {
);
const message_rows = elements_below_sticky_header
.filter((element) => element instanceof HTMLElement)
- .filter((element) => element.classList.contains("message_row"));
+ .filter((element) => element.classList.contains("message_row"))
+ .filter((element) => !rows.is_overlay_row($(element)));
if (message_rows.length === 0) {
/* If there is no message row under the header, it means it is not sticky yet,
so we just get the message next to the header. */