mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Flipping the tableView (#1366)
* I can't believe this works so well. * code improvements * we probably just need to change the TODO * better naming * done, there is only one small bug to fix * fix * this needs to be decided * fixed the backpagination issue and improved the scroll to top gesture triggered by tapping on the clock (but won't work when I am at the bottom) * fix
This commit is contained in:
@@ -277,11 +277,7 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
|
||||
let timelineItem = buildTimelineItem(for: itemProxy, chunkIndex: reversedIndex)
|
||||
|
||||
if timelineItem is PaginationIndicatorRoomTimelineItem {
|
||||
isBackPaginating = true
|
||||
} else if timelineItem is TimelineStartRoomTimelineItem {
|
||||
canBackPaginate = false
|
||||
} else if timelineItem is EncryptedHistoryRoomTimelineItem {
|
||||
if timelineItem is EncryptedHistoryRoomTimelineItem {
|
||||
canBackPaginate = false
|
||||
}
|
||||
|
||||
@@ -319,8 +315,10 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
case .timelineStartReached:
|
||||
let timelineStart = TimelineStartRoomTimelineItem(name: roomProxy.displayName ?? roomProxy.name)
|
||||
newTimelineItems.insert(timelineStart, at: 0)
|
||||
canBackPaginate = false
|
||||
case .paginating:
|
||||
newTimelineItems.insert(PaginationIndicatorRoomTimelineItem(), at: 0)
|
||||
isBackPaginating = true
|
||||
case .idle:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user