mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
287001f9aa
* Prevent foreground backfill from running when the app is active This should be a background task, since it can severely degrade performance if the app is in use while it runs. The worker won't run any more if the app is in foreground and will stop running if it was in background and now it's in foreground. * Fix return inside `withTimeout` Co-authored-by: Benoit Marty <benoitm@element.io> * Remove initial delay: it shouldn't be necessary if the foreground state of the app is checked when the worker starts Instead, if the app was in foreground, cancel the work and retry in 5 minutes. --------- Co-authored-by: Benoit Marty <benoitm@element.io>