Fix badge spam: attempt 2 (#3073)
This commit is contained in:
committed by
Richard van der Hoff
parent
f29e0bfe6d
commit
7850f7e505
@@ -58,6 +58,7 @@ function platformFriendlyName() {
|
||||
|
||||
export default class ElectronPlatform extends VectorBasePlatform {
|
||||
setNotificationCount(count: number) {
|
||||
if (this.notificationCount === count) return;
|
||||
super.setNotificationCount(count);
|
||||
// this sometimes throws because electron is made of fail:
|
||||
// https://github.com/electron/electron/issues/7351
|
||||
|
||||
Reference in New Issue
Block a user