Call Navigator::setAppBadge in Electron for Windows badges
This commit is contained in:
parent
0a5173f258
commit
83cd189984
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue