Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ package org.thoughtcrime.securesms.onboarding.messagenotifications

import android.app.Application

internal fun Application.isFastModeAvailable(): Boolean = true
/**
* Fast mode can never work on this flavour, however capable the device is: it binds
* `NoOpTokenFetcher`, whose token is permanently null, and `PushRegistrationHandler` combines on
* `token.filterNotNull()` — so registration is never even attempted. Reporting it unavailable also
* preserves the battery-optimisation prompt in `HomeViewModel`, which is gated on the user not being
* in fast mode and is the only mitigation left once delivery depends on `BackgroundPollWorker`.
*/
internal fun Application.isFastModeAvailable(): Boolean = false
Loading