Skip to content

Commit

Permalink
Add a comment clarifying why we conclude Unknown for an historical me…
Browse files Browse the repository at this point in the history
…ssage.

Co-authored-by: Richard van der Hoff <[email protected]>
Signed-off-by: Andy Balaam <[email protected]>
  • Loading branch information
andybalaam and richvdh authored Dec 11, 2024
1 parent 1a5c9f6 commit c8658d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/matrix-sdk-crypto/src/types/events/utd_cause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ impl UtdCause {
if crypto_context_info.is_backup_configured
|| crypto_context_info.this_device_is_verified
{
// Either backup download is working but we still don't have the key, or backup download
// *isn't* working despite being verified. In either case, we shrug and give an `Unknown` cause.
UtdCause::Unknown
} else {
UtdCause::HistoricalMessageAndDeviceIsUnverified
Expand Down

0 comments on commit c8658d0

Please sign in to comment.