Merge pull request #4228 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.77
This commit is contained in:
commit
cd6b0a43da
7 changed files with 8 additions and 5 deletions
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="2.1.0" />
|
<option name="version" value="2.1.10" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -173,7 +173,7 @@ jsoup = "org.jsoup:jsoup:1.18.3"
|
||||||
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
||||||
molecule-runtime = "app.cash.molecule:molecule-runtime:2.0.0"
|
molecule-runtime = "app.cash.molecule:molecule-runtime:2.0.0"
|
||||||
timber = "com.jakewharton.timber:timber:5.0.1"
|
timber = "com.jakewharton.timber:timber:5.0.1"
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.76"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.77"
|
||||||
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
||||||
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
||||||
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,5 @@ enum class SyncState {
|
||||||
Running,
|
Running,
|
||||||
Error,
|
Error,
|
||||||
Terminated,
|
Terminated,
|
||||||
|
Offline,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,9 +112,9 @@ class RustMatrixClientFactory @Inject constructor(
|
||||||
.useEventCachePersistentStorage(featureFlagService.isFeatureEnabled(FeatureFlags.EventCache))
|
.useEventCachePersistentStorage(featureFlagService.isFeatureEnabled(FeatureFlags.EventCache))
|
||||||
.roomKeyRecipientStrategy(
|
.roomKeyRecipientStrategy(
|
||||||
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) {
|
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) {
|
||||||
CollectStrategy.IdentityBasedStrategy
|
CollectStrategy.IDENTITY_BASED_STRATEGY
|
||||||
} else {
|
} else {
|
||||||
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = true)
|
CollectStrategy.ERROR_ON_VERIFIED_USER_PROBLEM
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.roomDecryptionTrustRequirement(
|
.roomDecryptionTrustRequirement(
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,6 @@ internal fun SyncServiceState.toSyncState(): SyncState {
|
||||||
SyncServiceState.RUNNING -> SyncState.Running
|
SyncServiceState.RUNNING -> SyncState.Running
|
||||||
SyncServiceState.TERMINATED -> SyncState.Terminated
|
SyncServiceState.TERMINATED -> SyncState.Terminated
|
||||||
SyncServiceState.ERROR -> SyncState.Error
|
SyncServiceState.ERROR -> SyncState.Error
|
||||||
|
SyncServiceState.OFFLINE -> SyncState.Offline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ class RustTimeline(
|
||||||
updatePaginationStatus(direction) { it.copy(isPaginating = true) }
|
updatePaginationStatus(direction) { it.copy(isPaginating = true) }
|
||||||
when (direction) {
|
when (direction) {
|
||||||
Timeline.PaginationDirection.BACKWARDS -> inner.paginateBackwards(PAGINATION_SIZE.toUShort())
|
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 ->
|
}.onFailure { error ->
|
||||||
if (error is TimelineException.CannotPaginate) {
|
if (error is TimelineException.CannotPaginate) {
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,6 @@ class AppStateMapperKtTest {
|
||||||
assertThat(SyncServiceState.RUNNING.toSyncState()).isEqualTo(SyncState.Running)
|
assertThat(SyncServiceState.RUNNING.toSyncState()).isEqualTo(SyncState.Running)
|
||||||
assertThat(SyncServiceState.TERMINATED.toSyncState()).isEqualTo(SyncState.Terminated)
|
assertThat(SyncServiceState.TERMINATED.toSyncState()).isEqualTo(SyncState.Terminated)
|
||||||
assertThat(SyncServiceState.ERROR.toSyncState()).isEqualTo(SyncState.Error)
|
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