mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 04:56:53 +00:00
Add a method to check for the presence of persisted messages, skipping the cache
This commit is contained in:
1 parent
f1c153f39f
commit
822092044b
3 files changed
+7
-3
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user