Merge pull request #4060 from element-hq/feature/fga/update_rust_sdk_0.2.72
depencies(sdk) : update rust sdk 0.2.72
This commit is contained in:
commit
3460551e2c
17 changed files with 48 additions and 20 deletions
|
|
@ -40,9 +40,12 @@ fun TimelineItemEncryptedView(
|
||||||
UtdCause.UnknownDevice -> {
|
UtdCause.UnknownDevice -> {
|
||||||
CommonStrings.common_unable_to_decrypt_insecure_device to CompoundDrawables.ic_compound_block
|
CommonStrings.common_unable_to_decrypt_insecure_device to CompoundDrawables.ic_compound_block
|
||||||
}
|
}
|
||||||
UtdCause.HistoricalMessage -> {
|
UtdCause.HistoricalMessageAndBackupIsDisabled -> {
|
||||||
CommonStrings.timeline_decryption_failure_historical_event_no_key_backup to CompoundDrawables.ic_compound_block
|
CommonStrings.timeline_decryption_failure_historical_event_no_key_backup to CompoundDrawables.ic_compound_block
|
||||||
}
|
}
|
||||||
|
UtdCause.HistoricalMessageAndDeviceIsUnverified -> {
|
||||||
|
CommonStrings.timeline_decryption_failure_historical_event_unverified_device to CompoundDrawables.ic_compound_block
|
||||||
|
}
|
||||||
UtdCause.WithheldUnverifiedOrInsecureDevice -> {
|
UtdCause.WithheldUnverifiedOrInsecureDevice -> {
|
||||||
CommonStrings.timeline_decryption_failure_withheld_unverified to CompoundDrawables.ic_compound_block
|
CommonStrings.timeline_decryption_failure_withheld_unverified to CompoundDrawables.ic_compound_block
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,13 @@ open class TimelineItemEncryptedContentProvider : PreviewParameterProvider<Timel
|
||||||
aTimelineItemEncryptedContent(
|
aTimelineItemEncryptedContent(
|
||||||
data = UnableToDecryptContent.Data.MegolmV1AesSha2(
|
data = UnableToDecryptContent.Data.MegolmV1AesSha2(
|
||||||
sessionId = "sessionId",
|
sessionId = "sessionId",
|
||||||
utdCause = UtdCause.HistoricalMessage,
|
utdCause = UtdCause.HistoricalMessageAndBackupIsDisabled,
|
||||||
|
)
|
||||||
|
),
|
||||||
|
aTimelineItemEncryptedContent(
|
||||||
|
data = UnableToDecryptContent.Data.MegolmV1AesSha2(
|
||||||
|
sessionId = "sessionId",
|
||||||
|
utdCause = UtdCause.HistoricalMessageAndDeviceIsUnverified,
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
aTimelineItemEncryptedContent(
|
aTimelineItemEncryptedContent(
|
||||||
|
|
|
||||||
|
|
@ -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.71"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.72"
|
||||||
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 CurrentUserMembership {
|
||||||
JOINED,
|
JOINED,
|
||||||
LEFT,
|
LEFT,
|
||||||
KNOCKED,
|
KNOCKED,
|
||||||
|
BANNED,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,17 @@ enum class UtdCause {
|
||||||
UnknownDevice,
|
UnknownDevice,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expected utd because this is a device-historical message and
|
* We are missing the keys for this event, but it is a "device-historical" message and
|
||||||
* key storage is not setup or not configured correctly.
|
* there is no key storage backup on the server, presumably because the user has turned it off.
|
||||||
*/
|
*/
|
||||||
HistoricalMessage,
|
HistoricalMessageAndBackupIsDisabled,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* We are missing the keys for this event, but it is a "device-historical"
|
||||||
|
* message, and even though a key storage backup does exist, we can't use
|
||||||
|
* it because our device is unverified.
|
||||||
|
*/
|
||||||
|
HistoricalMessageAndDeviceIsUnverified,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The key was withheld on purpose because your device is insecure and/or the
|
* The key was withheld on purpose because your device is insecure and/or the
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,9 @@ class UtdTracker(
|
||||||
UtdCause.UNKNOWN_DEVICE -> {
|
UtdCause.UNKNOWN_DEVICE -> {
|
||||||
Error.Name.ExpectedSentByInsecureDevice
|
Error.Name.ExpectedSentByInsecureDevice
|
||||||
}
|
}
|
||||||
UtdCause.HISTORICAL_MESSAGE -> Error.Name.HistoricalMessage
|
UtdCause.HISTORICAL_MESSAGE_AND_BACKUP_IS_DISABLED,
|
||||||
|
UtdCause.HISTORICAL_MESSAGE_AND_DEVICE_IS_UNVERIFIED,
|
||||||
|
-> Error.Name.HistoricalMessage
|
||||||
UtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> Error.Name.RoomKeysWithheldForUnverifiedDevice
|
UtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> Error.Name.RoomKeysWithheldForUnverifiedDevice
|
||||||
UtdCause.WITHHELD_BY_SENDER -> Error.Name.OlmKeysNotSentError
|
UtdCause.WITHHELD_BY_SENDER -> Error.Name.OlmKeysNotSentError
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ fun RustMembership.map(): CurrentUserMembership = when (this) {
|
||||||
RustMembership.JOINED -> CurrentUserMembership.JOINED
|
RustMembership.JOINED -> CurrentUserMembership.JOINED
|
||||||
RustMembership.LEFT -> CurrentUserMembership.LEFT
|
RustMembership.LEFT -> CurrentUserMembership.LEFT
|
||||||
Membership.KNOCKED -> CurrentUserMembership.KNOCKED
|
Membership.KNOCKED -> CurrentUserMembership.KNOCKED
|
||||||
|
RustMembership.BANNED -> CurrentUserMembership.BANNED
|
||||||
}
|
}
|
||||||
|
|
||||||
fun RustRoomNotificationMode.map(): RoomNotificationMode = when (this) {
|
fun RustRoomNotificationMode.map(): RoomNotificationMode = when (this) {
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,8 @@ private fun RustUtdCause.map(): UtdCause {
|
||||||
RustUtdCause.VERIFICATION_VIOLATION -> UtdCause.VerificationViolation
|
RustUtdCause.VERIFICATION_VIOLATION -> UtdCause.VerificationViolation
|
||||||
RustUtdCause.UNSIGNED_DEVICE -> UtdCause.UnsignedDevice
|
RustUtdCause.UNSIGNED_DEVICE -> UtdCause.UnsignedDevice
|
||||||
RustUtdCause.UNKNOWN_DEVICE -> UtdCause.UnknownDevice
|
RustUtdCause.UNKNOWN_DEVICE -> UtdCause.UnknownDevice
|
||||||
RustUtdCause.HISTORICAL_MESSAGE -> UtdCause.HistoricalMessage
|
RustUtdCause.HISTORICAL_MESSAGE_AND_BACKUP_IS_DISABLED -> UtdCause.HistoricalMessageAndBackupIsDisabled
|
||||||
|
RustUtdCause.HISTORICAL_MESSAGE_AND_DEVICE_IS_UNVERIFIED -> UtdCause.HistoricalMessageAndDeviceIsUnverified
|
||||||
RustUtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> UtdCause.WithheldUnverifiedOrInsecureDevice
|
RustUtdCause.WITHHELD_FOR_UNVERIFIED_OR_INSECURE_DEVICE -> UtdCause.WithheldUnverifiedOrInsecureDevice
|
||||||
RustUtdCause.WITHHELD_BY_SENDER -> UtdCause.WithheldBySender
|
RustUtdCause.WITHHELD_BY_SENDER -> UtdCause.WithheldBySender
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -360,6 +360,7 @@ We do not recommend enabling encryption for rooms that anyone can find and join.
|
||||||
<string name="test_language_identifier">"en"</string>
|
<string name="test_language_identifier">"en"</string>
|
||||||
<string name="test_untranslated_default_language_identifier">"en"</string>
|
<string name="test_untranslated_default_language_identifier">"en"</string>
|
||||||
<string name="timeline_decryption_failure_historical_event_no_key_backup">"Historical messages are not available on this device"</string>
|
<string name="timeline_decryption_failure_historical_event_no_key_backup">"Historical messages are not available on this device"</string>
|
||||||
|
<string name="timeline_decryption_failure_historical_event_unverified_device">"You need to verify this device for access to historical messages"</string>
|
||||||
<string name="timeline_decryption_failure_historical_event_user_not_joined">"You don\'t have access to this message"</string>
|
<string name="timeline_decryption_failure_historical_event_user_not_joined">"You don\'t have access to this message"</string>
|
||||||
<string name="timeline_decryption_failure_unable_to_decrypt">"Unable to decrypt message"</string>
|
<string name="timeline_decryption_failure_unable_to_decrypt">"Unable to decrypt message"</string>
|
||||||
<string name="timeline_decryption_failure_withheld_unverified">"This message was blocked either because you did not verify your device or because the sender needs to verify your identity."</string>
|
<string name="timeline_decryption_failure_withheld_unverified">"This message was blocked either because you did not verify your device or because the sender needs to verify your identity."</string>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:aba63b0f223f8480d40e6c9c48ce44a1ae1a8bdcc3d101030b9a0bd5f1e9ebee
|
oid sha256:dc3b043dcc28ab54ea0564e355b56d39ff79acd5180c9a34f727cb6e113b2611
|
||||||
size 23773
|
size 14473
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d5c8494ebb4ceaf3a31b661aec47f8a33afeb7aab1457483b7009099a6b56f86
|
oid sha256:aba63b0f223f8480d40e6c9c48ce44a1ae1a8bdcc3d101030b9a0bd5f1e9ebee
|
||||||
size 8960
|
size 23773
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:fee2af8462597d58274b7168c5cfe1f6d6b0909b048adc0f4fc5b3c12a90b859
|
oid sha256:d5c8494ebb4ceaf3a31b661aec47f8a33afeb7aab1457483b7009099a6b56f86
|
||||||
size 8861
|
size 8960
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fee2af8462597d58274b7168c5cfe1f6d6b0909b048adc0f4fc5b3c12a90b859
|
||||||
|
size 8861
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:5d0a687a259fafe830560b762a915e478d680dd7c34a295d72e82fc7c427a815
|
oid sha256:c857b7836bc9369cfc950b774479dafcb717d6acc40cf7d8b9b34b99974573db
|
||||||
size 23403
|
size 14377
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:dda55a19381d9f51a270afa644894f909d8c479be0a5e57b977393c9f1253683
|
oid sha256:5d0a687a259fafe830560b762a915e478d680dd7c34a295d72e82fc7c427a815
|
||||||
size 8960
|
size 23403
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d4f48cd7dc7e2bbf7363d1127e46721c25bb8dd887927dbcffe525f5bb5bae01
|
oid sha256:dda55a19381d9f51a270afa644894f909d8c479be0a5e57b977393c9f1253683
|
||||||
size 8781
|
size 8960
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d4f48cd7dc7e2bbf7363d1127e46721c25bb8dd887927dbcffe525f5bb5bae01
|
||||||
|
size 8781
|
||||||
Loading…
Add table
Add a link
Reference in a new issue