Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 93636a70 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

GCM: Fix accidentally not allowing regitration for some apps

parent a95f6449
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")
    }
}