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

Unverified Commit b08bd846 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé Committed by GitHub
Browse files

Merge pull request #8525 from cketti/fix-enable-push

Always listen to push enabled changes in push-capable accounts
parents d46b4f4e 80c2ce15
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -206,12 +206,7 @@ class PushController internal constructor(
            pushers.isNotEmpty()
        }

        val potentialPushAccounts = if (shouldDisablePushAccounts) {
            emptySet()
        } else {
            getPushCapableAccounts()
        }
        updatePushEnabledListeners(potentialPushAccounts)
        updatePushEnabledListeners(getPushCapableAccounts())

        when {
            realPushAccounts.isEmpty() -> {