Little mistake :D

This commit is contained in:
Oizaro 2020-10-19 17:47:29 +02:00
parent 37efd0c9b8
commit 0f7f05239e
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ private suspend fun ensureAppRegistrationAllowed(context: Context, database: Gcm
if (!accepted) {
throw RuntimeException("Push permission not granted to app")
}
} else if (app?.allowRegister) {
} else if (app?.allowRegister == false) {
throw RuntimeException("Push permission not granted to app")
}
}