mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
fix long pages landing
This commit is contained in:
@@ -922,7 +922,7 @@ struct ChatView: View {
|
||||
let index = im.reversedChatItems.firstIndex { $0.id == chatItemId }
|
||||
if let index {
|
||||
if let gap = im.gap {
|
||||
let size = max(0, (apiGap ?? 0) - index)
|
||||
let size = max(0, (apiGap ?? 0) - index - reversedPage.count)
|
||||
if size > 0 {
|
||||
im.gap = ChatGap(index: gap.index, size: size)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user