Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_viewport: Consistently use 'row_to_output' for callback.
Varun Singhc67b38fa7da2
diff --git a/web/src/message_viewport.ts b/web/src/message_viewport.tsindex 72b145eab54..ce8cb41d68d 100644--- a/web/src/message_viewport.ts+++ b/web/src/message_viewport.ts@@ -185,13 +185,13 @@ function add_to_visible<T>(top_of_feed: number,bottom_of_feed: number,require_fully_visible: boolean,- row_to_id: ($row: HTMLElement) => T,+ row_to_output: ($row: HTMLElement) => T,): void {for (const row of $candidates) {const row_rect = row.getBoundingClientRect();// Mark very tall messages as read once we've gotten past themif (in_viewport_or_tall(row_rect, top_of_feed, bottom_of_feed, require_fully_visible)) {- visible.push(row_to_id(row));+ visible.push(row_to_output(row));} else {break;}