Bump SDK version and fix breaking changes. (#709)

This commit is contained in:
Doug
2023-03-20 18:26:07 +00:00
committed by GitHub
parent efdb47a98a
commit 66651c0f34
8 changed files with 23 additions and 22 deletions
@@ -72,8 +72,8 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
.sink { [weak self] roomSummaryProviderState, totalCount, rooms in
guard let self else { return }
let isLoadingData = roomSummaryProviderState != .live && (totalCount == 0 || rooms.count != totalCount)
let hasNoRooms = roomSummaryProviderState == .live && totalCount == 0
let isLoadingData = roomSummaryProviderState != .fullyLoaded && (totalCount == 0 || rooms.count != totalCount)
let hasNoRooms = roomSummaryProviderState == .fullyLoaded && totalCount == 0
var roomListMode = self.state.roomListMode
if isLoadingData {
@@ -269,7 +269,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
}
private func updateVisibleRange(_ range: Range<Int>, timelineLimit: UInt) {
guard visibleRoomsSummaryProvider?.statePublisher.value == .live,
guard visibleRoomsSummaryProvider?.statePublisher.value == .fullyLoaded,
!range.isEmpty else { return }
guard let visibleRoomsSummaryProvider else {