fix electron too
This commit is contained in:
@@ -58,6 +58,7 @@ function platformFriendlyName() {
|
|||||||
|
|
||||||
export default class ElectronPlatform extends VectorBasePlatform {
|
export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
setNotificationCount(count: number) {
|
setNotificationCount(count: number) {
|
||||||
|
if (this.notificationCount === number) return;
|
||||||
super.setNotificationCount(count);
|
super.setNotificationCount(count);
|
||||||
// this sometimes throws because electron is made of fail:
|
// this sometimes throws because electron is made of fail:
|
||||||
// https://github.com/electron/electron/issues/7351
|
// https://github.com/electron/electron/issues/7351
|
||||||
|
|||||||
Reference in New Issue
Block a user