Fix notification profile polling backpressure crash.

This commit is contained in:
Cody Henthorne
2026-09-02 16:11:31 -03:00
committed by Alex Hart
parent 0dbe4ef8e8
commit 5175efb22b
@@ -37,7 +37,7 @@ object RxDatabaseObserver {
@Suppress("RedundantUnitExpression")
private fun notificationProfilesFlowable(): Flowable<Unit> {
return Flowable.combineLatest(
Flowable.interval(0, 30, TimeUnit.SECONDS),
Flowable.interval(0, 30, TimeUnit.SECONDS).onBackpressureLatest(),
databaseFlowable { AppDependencies.databaseObserver.registerNotificationProfileObserver(it) }
) { _, _ -> Unit }
}