diff --git a/submodules/TelegramCore/Sources/Holes.swift b/submodules/TelegramCore/Sources/Holes.swift index 22b6be9ed8..fc66edb831 100644 --- a/submodules/TelegramCore/Sources/Holes.swift +++ b/submodules/TelegramCore/Sources/Holes.swift @@ -270,7 +270,7 @@ func fetchMessageHistoryHole(accountPeerId: PeerId, source: FetchMessageHistoryH offsetId = start.id == Int32.max ? start.id : (start.id + 1) addOffset = 0 maxId = start.id == Int32.max ? start.id : (start.id + 1) - minId = end.id + minId = end.id == 1 ? 0 : end.id let rangeStartId = end.id let rangeEndId = min(start.id, Int32.max - 1)