Rename PushNotificationReceiveJob -> MessageFetchJob.

This commit is contained in:
Greyson Parrelli
2023-08-15 09:03:58 -04:00
committed by Cody Henthorne
parent 0facdc0497
commit a7019b2e60
6 changed files with 17 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ import org.signal.core.util.logging.Log
import org.thoughtcrime.securesms.MainActivity
import org.thoughtcrime.securesms.R
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
import org.thoughtcrime.securesms.jobs.PushNotificationReceiveJob
import org.thoughtcrime.securesms.jobs.MessageFetchJob
import org.thoughtcrime.securesms.messages.WebSocketDrainer
import org.thoughtcrime.securesms.notifications.NotificationChannels
import org.thoughtcrime.securesms.notifications.NotificationIds
@@ -150,7 +150,7 @@ object FcmFetchManager {
FcmJobService.schedule(context)
} else {
Log.w(TAG, "[API ${Build.VERSION.SDK_INT}] Failed to retrieve messages. Scheduling on JobManager (API " + Build.VERSION.SDK_INT + ").")
ApplicationDependencies.getJobManager().add(PushNotificationReceiveJob())
ApplicationDependencies.getJobManager().add(MessageFetchJob())
}
}