mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-24 09:28:21 +08:00
Call Navigator::setAppBadge in Electron for Windows badges
This commit is contained in:
parent
0a5173f258
commit
83cd189984
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user