Temporary - prevent backwards pagination from scrolling the timline all the way back to the begining of time.
This commit is contained in:
@@ -52,6 +52,7 @@ struct RoomScreen: View {
|
||||
Text(message.text)
|
||||
}
|
||||
.listRowSeparator(.hidden)
|
||||
.id(message.id)
|
||||
}
|
||||
|
||||
Divider()
|
||||
@@ -64,6 +65,7 @@ struct RoomScreen: View {
|
||||
}
|
||||
.onChange(of: context.viewState.messages) { _ in
|
||||
if backPaginationMessageIdentifier != nil {
|
||||
reader.scrollTo(backPaginationMessageIdentifier, anchor: .bottom)
|
||||
self.backPaginationMessageIdentifier = nil
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user