Call Navigator::setAppBadge in Electron for Windows badges
This commit is contained in:
@@ -217,6 +217,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
super.setNotificationCount(count);
|
super.setNotificationCount(count);
|
||||||
|
|
||||||
window.electron!.send("setBadgeCount", 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 {
|
public supportsNotifications(): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user