diff options
author | 2017-12-22 23:20:48 +0100 | |
---|---|---|
committer | 2017-12-22 23:20:48 +0100 | |
commit | 344c25061f6a780da2db55e1ec5a66024a580dba (patch) | |
tree | 599afacc61a00ce5c62e0f451cfb60d66b8e9b0c /src/stores | |
parent | setBadge debugging (diff) | |
download | ferdium-app-344c25061f6a780da2db55e1ec5a66024a580dba.tar.gz ferdium-app-344c25061f6a780da2db55e1ec5a66024a580dba.tar.zst ferdium-app-344c25061f6a780da2db55e1ec5a66024a580dba.zip |
Fix indirect message badge being displayed when disabled
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 2417181e6..c48f48a88 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -497,7 +497,7 @@ export default class ServicesStore extends Store { | |||
497 | .reduce((a, b) => a + b, 0); | 497 | .reduce((a, b) => a + b, 0); |
498 | 498 | ||
499 | const unreadIndirectMessageCount = this.allDisplayed | 499 | const unreadIndirectMessageCount = this.allDisplayed |
500 | .filter(s => (showMessageBadgeWhenMuted || s.isIndirectMessageBadgeEnabled) && showMessageBadgesEvenWhenMuted && s.isBadgeEnabled) | 500 | .filter(s => (showMessageBadgeWhenMuted && showMessageBadgesEvenWhenMuted) && (s.isBadgeEnabled && s.isIndirectMessageBadgeEnabled)) |
501 | .map(s => s.unreadIndirectMessageCount) | 501 | .map(s => s.unreadIndirectMessageCount) |
502 | .reduce((a, b) => a + b, 0); | 502 | .reduce((a, b) => a + b, 0); |
503 | 503 | ||