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.

recent_view: Fix get_row_type check broken.

Aman Agrawal6c1531f7bbe6
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.ts
index 4f235418f36..2bba7151543 100644
--- a/web/src/recent_view_ui.ts
+++ b/web/src/recent_view_ui.ts
@@ -289,7 +289,7 @@ function get_row_type(row: number): string {
if (!topics_widget) {
const $topic_rows = $("#recent-view-content-tbody tr");
const $topic_row = $topic_rows.eq(row);
- const is_private = $topic_row.attr("data-private");
+ const is_private = $topic_row.hasClass("private_conversation_row");
if (is_private) {
return "private";
}