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.

compose_banner: Don't show banner if message sent in a near view.

Prakhar Pratyush0c13422c0db2
diff --git a/web/src/compose_notifications.ts b/web/src/compose_notifications.ts
index fc69fa25251..2e71aa78963 100644
--- a/web/src/compose_notifications.ts
+++ b/web/src/compose_notifications.ts
@@ -125,8 +125,13 @@ export function is_local_mix(message: Message): boolean {
}
const current_filter = narrow_state.filter();
+ const is_conversation_view =
+ current_filter === undefined
+ ? false
+ : current_filter.is_conversation_view() ||
+ current_filter.is_conversation_view_with_near();
const $row = message_lists.current.get_row(message.id);
- if (current_filter && current_filter.is_conversation_view() && $row.length > 0) {
+ if (is_conversation_view && $row.length > 0) {
// If our message is in the current conversation view, we do
// not have a mix, so we are happy.
return false;