mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 12:54:39 +00:00
Seperate sending of notifs from sounds
This commit is contained in:
@@ -335,8 +335,12 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async maySendNotifications(): Promise<boolean> {
|
maySendNotifications(): boolean {
|
||||||
return this._ipcCall('getMaySendNotifications');
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async isDoNotDisturbEnabled(): Promise<boolean> {
|
||||||
|
return this._ipcCall('getDoNotDisturbEnabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
displayNotification(title: string, msg: string, avatarUrl: string, room: Room): Notification {
|
displayNotification(title: string, msg: string, avatarUrl: string, room: Room): Notification {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
* Returns true if the application currently has permission
|
* Returns true if the application currently has permission
|
||||||
* to display notifications. Otherwise false.
|
* to display notifications. Otherwise false.
|
||||||
*/
|
*/
|
||||||
async maySendNotifications(): Promise<boolean> {
|
maySendNotifications(): boolean {
|
||||||
return window.Notification.permission === 'granted';
|
return window.Notification.permission === 'granted';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user