mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 21:38:02 +01:00
Avoid querying the database if we think all new messages are in the cache.
This commit is contained in:
committed by
Jon Chambers
parent
f766c57743
commit
6f9ff3be37
@@ -193,7 +193,7 @@ public class MessageController {
|
||||
final OutgoingMessageEntityList outgoingMessages = messagesManager.getMessagesForDevice(account.getNumber(),
|
||||
account.getUuid(),
|
||||
account.getAuthenticatedDevice().get().getId(),
|
||||
userAgent);
|
||||
userAgent, false);
|
||||
|
||||
outgoingMessageListSizeHistogram.update(outgoingMessages.getMessages().size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user