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

This commit is contained in:
Jon Chambers
2024-07-31 10:19:13 -04:00
committed by Jon Chambers
parent f1c153f39f
commit 822092044b
3 changed files with 7 additions and 3 deletions

View File

@@ -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);