mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-11 11:55:48 +01:00
GCM: Fix accidentally not allowing regitration for some apps
This commit is contained in:
parent
a95f6449f5
commit
93636a704d
@ -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 New Issue
Block a user