From 0e16a5d626fa36335d6e2d3012c825883fd95f51 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 25 Jan 2021 14:38:48 +0500 Subject: [PATCH] Fix message loading --- submodules/TelegramCore/Sources/Holes.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)