From f29e0bfe6d526af6643f3410fa569b8daa3c1f8e Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <richard@matrix.org>
Date: Thu, 26 Jan 2017 12:16:44 +0000
Subject: [PATCH] Revert "Merge pull request #3067 from
 vector-im/matthew/fix-badge-spam"

This reverts commit f9db7f017d64e6bb4021fd04bfb99162b008bd79, reversing
changes made to 71b149de760724d8329b260de222aea507b70fe8.

This caused `number is not defined`
---
 src/vector/platform/ElectronPlatform.js | 1 -
 src/vector/platform/WebPlatform.js      | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js
index 18ad4a5d..47bfd990 100644
--- a/src/vector/platform/ElectronPlatform.js
+++ b/src/vector/platform/ElectronPlatform.js
@@ -58,7 +58,6 @@ function platformFriendlyName() {
 
 export default class ElectronPlatform extends VectorBasePlatform {
     setNotificationCount(count: number) {
-        if (this.notificationCount === number) return;
         super.setNotificationCount(count);
         // this sometimes throws because electron is made of fail:
         // https://github.com/electron/electron/issues/7351
diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js
index dda22f3c..2029822b 100644
--- a/src/vector/platform/WebPlatform.js
+++ b/src/vector/platform/WebPlatform.js
@@ -60,13 +60,11 @@ export default class WebPlatform extends VectorBasePlatform {
     }
 
     setNotificationCount(count: number) {
-        if (this.notificationCount === number) return;
         super.setNotificationCount(count);
         this._updateFavicon();
     }
 
     setErrorStatus(errorDidOccur: boolean) {
-        if (this.errorDidOccur === errorDidOccur) return;
         super.setErrorStatus(errorDidOccur);
         this._updateFavicon();
     }