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.

banners: Increase threshold for majority muted messages banner.

Sayam Samal0894b4f01bee
diff --git a/web/src/navbar_alerts.ts b/web/src/navbar_alerts.ts
index 87ef71eb5a4..ee75d1696fb 100644
--- a/web/src/navbar_alerts.ts
+++ b/web/src/navbar_alerts.ts
@@ -513,8 +513,8 @@ export function check_and_show_muted_messages_banner(): void {
);
const percent_muted_messages = (muted_messages.length / messages.length) * 100;
- if (muted_messages.length >= 5000 && percent_muted_messages > 50) {
- // If more than 50% of the loaded messages are muted, and that quantity exceeds
+ if (muted_messages.length >= 5000 && percent_muted_messages > 75) {
+ // If more than 75% of the loaded messages are muted, and that quantity exceeds
// at least 5000 messages, show the banner. We use an absolute number threshold
// to avoid showing the banner when there are very few messages loaded to have
// any impact on the performance.