mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-30 15:13:02 +00:00
GCM: Fix accidentally not allowing regitration for some apps
This commit is contained in:
parent
a95f6449f5
commit
93636a704d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue