Use MessagesFetcherWorker on new push messages

This commit is contained in:
sim
2025-08-06 10:52:07 +02:00
parent 08219ffdab
commit cb5a8b9d1b
@@ -37,10 +37,7 @@ class PushService: PushService() {
when {
pn.verification != null -> onVerification(pn.verification)
}
// TODO: Start same job than the periodic service ?
// Receiving the push notif is enough to wake the app and fetch msgs
// But it may not be enough when the phone is in doze, or with some
// vendors
MessagesFetcherWorker.scheduleWork(200, 0)
}
override fun onNewEndpoint(endpoint: PushEndpoint, instance: String) {