Compare commits

...

2 Commits

Author SHA1 Message Date
Will Hunt
ebcf9dd68e Seperate sending of notifs from sounds 2020-09-29 17:05:37 +01:00
Will Hunt
8bb98c3044 Implement maySendNotifications based upon dnd work 2020-09-29 17:01:44 +01:00

View File

@@ -339,6 +339,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
return true;
}
async isDoNotDisturbEnabled(): Promise<boolean> {
return this._ipcCall('getDoNotDisturbEnabled');
}
displayNotification(title: string, msg: string, avatarUrl: string, room: Room): Notification {
// GNOME notification spec parses HTML tags for styling...
// Electron Docs state all supported linux notification systems follow this markup spec