Skip to content

Commit

Permalink
Put back the initial pagination. (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored Feb 24, 2023
1 parent f8c1f41 commit 6ff1350
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ElementX/Sources/Screens/RoomScreen/View/TimelineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ struct TimelineView: UIViewControllerRepresentable {

init(viewModelContext: RoomScreenViewModel.Context) {
context = viewModelContext

if viewModelContext.viewState.items.isEmpty {
viewModelContext.send(viewAction: .paginateBackwards)
}
}

/// Updates the specified table view's properties from the current view state.
Expand Down

0 comments on commit 6ff1350

Please sign in to comment.