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.

eslint: Fix unicorn/no-lonely-if.

Anders Kaseorg95a5da94a339
diff --git a/web/src/emoji_frequency.ts b/web/src/emoji_frequency.ts
index e4128b55dcf..f4d21617b67 100644
--- a/web/src/emoji_frequency.ts
+++ b/web/src/emoji_frequency.ts
@@ -19,13 +19,12 @@ function should_ignore_reaction(
message: message_store.Message,
reaction_sender_id?: number,
): boolean {
- if (message.type === "stream") {
- if (
- user_topics.is_topic_muted(message.stream_id, message.topic) ||
- stream_data.is_muted(message.stream_id)
- ) {
- return true;
- }
+ if (
+ message.type === "stream" &&
+ (user_topics.is_topic_muted(message.stream_id, message.topic) ||
+ stream_data.is_muted(message.stream_id))
+ ) {
+ return true;
}
if (reaction_sender_id && muted_users.is_user_muted(reaction_sender_id)) {
return true;