Skip to content

Commit 3b2c615

Browse files
committed
chore(dependencies) : update rust sdk to 0.2.69 and handle new utd causes.
1 parent f3ee89d commit 3b2c615

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jsoup = "org.jsoup:jsoup:1.18.1"
173173
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
174174
molecule-runtime = "app.cash.molecule:molecule-runtime:2.0.0"
175175
timber = "com.jakewharton.timber:timber:5.0.1"
176-
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.68"
176+
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.69"
177177
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
178178
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
179179
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/analytics/UtdTracker.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class UtdTracker(
2828
Error.Name.ExpectedSentByInsecureDevice
2929
}
3030
UtdCause.HISTORICAL_MESSAGE -> Error.Name.HistoricalMessage
31+
UtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> Error.Name.RoomKeysWithheldForUnverifiedDevice
32+
UtdCause.WITHHELD_BY_SENDER -> Error.Name.OlmKeysNotSentError
3133
}
3234
val event = Error(
3335
context = null,

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/item/event/TimelineEventContentMapper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ private fun RustUtdCause.map(): UtdCause {
146146
RustUtdCause.UNSIGNED_DEVICE -> UtdCause.UnsignedDevice
147147
RustUtdCause.UNKNOWN_DEVICE -> UtdCause.UnknownDevice
148148
RustUtdCause.HISTORICAL_MESSAGE -> UtdCause.HistoricalMessage
149+
RustUtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> UtdCause.WithheldUnverifiedOrInsecureDevice
150+
RustUtdCause.WITHHELD_BY_SENDER -> UtdCause.WithheldBySender
149151
}
150152
}
151153

0 commit comments

Comments
 (0)