Add a method to check for the presence of persisted messages, skipping the cache

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2024-07-31 10:50:47 -04:00
1 parent f1c153f39f
commit 822092044b
3 files changed
+7 -3

No files matched your search

@@ -53,7 +53,7 @@ class NotifyIdleDevicesWithoutMessagesPushNotificationExperimentTest {
final boolean mayHaveMessages,
final boolean expectEligible) {
when(messagesManager.mayHaveMessages(account.getIdentifier(IdentityType.ACI), device))
when(messagesManager.mayHavePersistedMessages(account.getIdentifier(IdentityType.ACI), device))
.thenReturn(CompletableFuture.completedFuture(mayHaveMessages));
when(idleDeviceNotificationScheduler.isIdle(device)).thenReturn(isDeviceIdle);