mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
Revert "Merge pull request #3067 from vector-im/matthew/fix-badge-spam"
This reverts commitf9db7f017d
, reversing changes made to71b149de76
. This caused `number is not defined`
This commit is contained in:
parent
f9db7f017d
commit
f29e0bfe6d
2 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue