Fix message loading

This commit is contained in:
Ali 2021-01-25 14:38:48 +05:00
parent 5ba3e42b63
commit 0e16a5d626

View File

@ -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)