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_ui: Add class to message-list if conversation view.

whilstsomebody8c9900bf5edd
diff --git a/web/src/message_lists.ts b/web/src/message_lists.ts
index 5f58b3f42fc..60db5f06468 100644
--- a/web/src/message_lists.ts
+++ b/web/src/message_lists.ts
@@ -56,6 +56,12 @@ export function update_current_message_list(msg_list: MessageList | undefined):
message_list_data_cache.add(current.data);
current.view.$list.addClass("focused-message-list");
}
+
+ if (current?.data.filter.is_conversation_view()) {
+ $(".focused-message-list").addClass("is-conversation-view");
+ } else {
+ $(".focused-message-list").removeClass("is-conversation-view");
+ }
}
export function all_rendered_message_lists(): MessageList[] {