You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/event/TimelineItemEncryptedView.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,12 @@ fun TimelineItemEncryptedView(
40
40
UtdCause.UnknownDevice-> {
41
41
CommonStrings.common_unable_to_decrypt_insecure_device to CompoundDrawables.ic_compound_block
42
42
}
43
-
UtdCause.HistoricalMessage-> {
43
+
UtdCause.HistoricalMessageAndBackupIsDisabled-> {
44
44
CommonStrings.timeline_decryption_failure_historical_event_no_key_backup to CompoundDrawables.ic_compound_block
Copy file name to clipboardExpand all lines: libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/timeline/item/event/UtdCause.kt
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,17 @@ enum class UtdCause {
15
15
UnknownDevice,
16
16
17
17
/**
18
-
* Expected utd because this is a device-historical message and
19
-
* key storage is not setup or not configured correctly.
18
+
* We are missing the keys for this event, but it is a "device-historical" message and
19
+
* there is no key storage backup on the server, presumably because the user has turned it off.
20
20
*/
21
-
HistoricalMessage,
21
+
HistoricalMessageAndBackupIsDisabled,
22
+
23
+
/**
24
+
* We are missing the keys for this event, but it is a "device-historical"
25
+
* message, and even though a key storage backup does exist, we can't use
26
+
* it because our device is unverified.
27
+
*/
28
+
HistoricalMessageAndDeviceIsUnverified,
22
29
23
30
/**
24
31
* The key was withheld on purpose because your device is insecure and/or the
Copy file name to clipboardExpand all lines: libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/item/event/TimelineEventContentMapper.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,8 @@ private fun RustUtdCause.map(): UtdCause {
<stringname="timeline_decryption_failure_historical_event_no_key_backup">"Historical messages are not available on this device"</string>
346
+
<stringname="timeline_decryption_failure_historical_event_unverified_device">"You need to verify this device for access to historical messages"</string>
346
347
<stringname="timeline_decryption_failure_historical_event_user_not_joined">"You don\'t have access to this message"</string>
347
348
<stringname="timeline_decryption_failure_unable_to_decrypt">"Unable to decrypt message"</string>
348
349
<stringname="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>
0 commit comments