Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Michael Telatynski
83cd189984
Call Navigator::setAppBadge in Electron for Windows badges 2023-05-24 11:34:55 +01:00

View file

@ -217,6 +217,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
super.setNotificationCount(count);
window.electron!.send("setBadgeCount", count);
// Windows doesn't support app badgeCount so we have to call this too
navigator.setAppBadge?.(count).catch((e) => {
logger.error("Failed to update app badge", e);
});
}
public supportsNotifications(): boolean {