thinko with push checks

This commit is contained in:
Bruno Windels 2021-03-22 19:19:25 +01:00
parent dbddba3691
commit 3313d0623a

View file

@ -515,7 +515,7 @@ export class Session {
}
async arePushNotificationsEnabled() {
if (await this._platform.notificationService.isPushEnabled()) {
if (!await this._platform.notificationService.isPushEnabled()) {
return false;
}
const readTxn = await this._storage.readTxn([this._storage.storeNames.session]);