mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
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)
|
Text(message.text)
|
||||||
}
|
}
|
||||||
.listRowSeparator(.hidden)
|
.listRowSeparator(.hidden)
|
||||||
|
.id(message.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
@@ -64,6 +65,7 @@ struct RoomScreen: View {
|
|||||||
}
|
}
|
||||||
.onChange(of: context.viewState.messages) { _ in
|
.onChange(of: context.viewState.messages) { _ in
|
||||||
if backPaginationMessageIdentifier != nil {
|
if backPaginationMessageIdentifier != nil {
|
||||||
|
reader.scrollTo(backPaginationMessageIdentifier, anchor: .bottom)
|
||||||
self.backPaginationMessageIdentifier = nil
|
self.backPaginationMessageIdentifier = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user