mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 09:46:47 +00:00
Fix a bad size check when loading stored messages.
This commit is contained in:
1 parent
839f34ec4e
commit
6fe511eb50
1 file changed
+1
-1
@@ -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