Fix API break
This commit is contained in:
parent
66a6b68cfe
commit
cfba424dc6
5 changed files with 6 additions and 3 deletions
|
|
@ -12,4 +12,5 @@ enum class SyncState {
|
|||
Running,
|
||||
Error,
|
||||
Terminated,
|
||||
Offline,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,9 +112,9 @@ class RustMatrixClientFactory @Inject constructor(
|
|||
.useEventCachePersistentStorage(featureFlagService.isFeatureEnabled(FeatureFlags.EventCache))
|
||||
.roomKeyRecipientStrategy(
|
||||
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) {
|
||||
CollectStrategy.IdentityBasedStrategy
|
||||
CollectStrategy.IDENTITY_BASED_STRATEGY
|
||||
} else {
|
||||
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = true)
|
||||
CollectStrategy.ERROR_ON_VERIFIED_USER_PROBLEM
|
||||
}
|
||||
)
|
||||
.roomDecryptionTrustRequirement(
|
||||
|
|
|
|||
|
|
@ -16,5 +16,6 @@ internal fun SyncServiceState.toSyncState(): SyncState {
|
|||
SyncServiceState.RUNNING -> SyncState.Running
|
||||
SyncServiceState.TERMINATED -> SyncState.Terminated
|
||||
SyncServiceState.ERROR -> SyncState.Error
|
||||
SyncServiceState.OFFLINE -> SyncState.Offline
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ class RustTimeline(
|
|||
updatePaginationStatus(direction) { it.copy(isPaginating = true) }
|
||||
when (direction) {
|
||||
Timeline.PaginationDirection.BACKWARDS -> inner.paginateBackwards(PAGINATION_SIZE.toUShort())
|
||||
Timeline.PaginationDirection.FORWARDS -> inner.focusedPaginateForwards(PAGINATION_SIZE.toUShort())
|
||||
Timeline.PaginationDirection.FORWARDS -> inner.paginateForwards(PAGINATION_SIZE.toUShort())
|
||||
}
|
||||
}.onFailure { error ->
|
||||
if (error is TimelineException.CannotPaginate) {
|
||||
|
|
|
|||
|
|
@ -19,5 +19,6 @@ class AppStateMapperKtTest {
|
|||
assertThat(SyncServiceState.RUNNING.toSyncState()).isEqualTo(SyncState.Running)
|
||||
assertThat(SyncServiceState.TERMINATED.toSyncState()).isEqualTo(SyncState.Terminated)
|
||||
assertThat(SyncServiceState.ERROR.toSyncState()).isEqualTo(SyncState.Error)
|
||||
assertThat(SyncServiceState.OFFLINE.toSyncState()).isEqualTo(SyncState.Offline)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue