From 0f7f05239ef349820403d6a1f24d6131ecae4159 Mon Sep 17 00:00:00 2001 From: Oizaro Date: Mon, 19 Oct 2020 17:47:29 +0200 Subject: [PATCH] Little mistake :D --- .../src/main/kotlin/org/microg/gms/gcm/PushRegisterService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-services-core/src/main/kotlin/org/microg/gms/gcm/PushRegisterService.kt b/play-services-core/src/main/kotlin/org/microg/gms/gcm/PushRegisterService.kt index 2a16cb14..01dd1a58 100644 --- a/play-services-core/src/main/kotlin/org/microg/gms/gcm/PushRegisterService.kt +++ b/play-services-core/src/main/kotlin/org/microg/gms/gcm/PushRegisterService.kt @@ -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") } }