Skip to content

Commit

Permalink
Revert "Merge pull request element-hq#3067 from vector-im/matthew/fix…
Browse files Browse the repository at this point in the history
…-badge-spam"

This reverts commit f9db7f0, reversing
changes made to 71b149d.

This caused `number is not defined`
  • Loading branch information
richvdh authored and Half-Shot committed Feb 9, 2017
1 parent f5f0f8b commit 5ea8bfe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/vector/platform/ElectronPlatform.js
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/vector/platform/WebPlatform.js
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5ea8bfe

Please sign in to comment.