mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix message loading
This commit is contained in:
parent
5ba3e42b63
commit
0e16a5d626
@ -270,7 +270,7 @@ func fetchMessageHistoryHole(accountPeerId: PeerId, source: FetchMessageHistoryH
|
|||||||
offsetId = start.id == Int32.max ? start.id : (start.id + 1)
|
offsetId = start.id == Int32.max ? start.id : (start.id + 1)
|
||||||
addOffset = 0
|
addOffset = 0
|
||||||
maxId = start.id == Int32.max ? start.id : (start.id + 1)
|
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 rangeStartId = end.id
|
||||||
let rangeEndId = min(start.id, Int32.max - 1)
|
let rangeEndId = min(start.id, Int32.max - 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user