Seperate sending of notifs from sounds

This commit is contained in:
Will Hunt
2020-09-29 17:05:37 +01:00
parent 8bb98c3044
commit ebcf9dd68e
2 changed files with 7 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export default class WebPlatform extends VectorBasePlatform {
* Returns true if the application currently has permission
* to display notifications. Otherwise false.
*/
async maySendNotifications(): Promise<boolean> {
maySendNotifications(): boolean {
return window.Notification.permission === 'granted';
}