diff --git a/src/app/modules/startup/models/fetching_data_item.nim b/src/app/modules/startup/models/fetching_data_item.nim index fc9ce4e9d2..6e7708c70c 100644 --- a/src/app/modules/startup/models/fetching_data_item.nim +++ b/src/app/modules/startup/models/fetching_data_item.nim @@ -28,7 +28,7 @@ proc loadedMessages*(self: Item): int = return loadedMessages proc receivedMessageAtPosition*(self: Item, position: int) = - if position >= 1 or position <= self.totalMessages: + if position >= 1 and position <= self.totalMessages: self.trackOfLoadedMessages[position-1] = true proc totalMessages*(self: Item): int =