mirror of
https://github.com/signalapp/Signal-Server
synced 2026-02-24 22:35:14 +00:00
Fix a bad size check when loading stored messages.
This commit is contained in:
committed by
Jon Chambers
parent
839f34ec4e
commit
6fe511eb50
@@ -55,7 +55,7 @@ public class MessagesManager {
|
||||
|
||||
List<OutgoingMessageEntity> messages = cachedMessagesOnly ? new ArrayList<>() : this.messages.load(destination, destinationDevice);
|
||||
|
||||
if (messages.size() <= Messages.RESULT_SET_CHUNK_SIZE) {
|
||||
if (messages.size() < Messages.RESULT_SET_CHUNK_SIZE) {
|
||||
messages.addAll(messagesCache.get(destinationUuid, destinationDevice, Messages.RESULT_SET_CHUNK_SIZE - messages.size()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user