Temporary - prevent backwards pagination from scrolling the timline all the way back to the begining of time.

This commit is contained in:
Stefan Ceriu
2022-03-08 14:59:27 +02:00
parent 9eec77e228
commit 863fe13acf

View File

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