Skip to content

Commit

Permalink
chore: Update the human readable description for the SentInClear shield.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Aug 6, 2024
1 parent c83fa3a commit 5c185a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-common/src/deserialized_responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const AUTHENTICITY_NOT_GUARANTEED: &str =
const UNVERIFIED_IDENTITY: &str = "Encrypted by an unverified user.";
const UNSIGNED_DEVICE: &str = "Encrypted by a device not verified by its owner.";
const UNKNOWN_DEVICE: &str = "Encrypted by an unknown or deleted device.";
pub const SENT_IN_CLEAR: &str = "Sent in clear.";
pub const SENT_IN_CLEAR: &str = "Not encrypted.";

/// Represents the state of verification for a decrypted message sent by a
/// device.
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk-ui/src/timeline/tests/shields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn test_sent_in_clear_shield() {
let shield = item.as_event().unwrap().get_shield(false);
assert_eq!(
shield,
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Not encrypted." })
);
}

Expand Down Expand Up @@ -116,6 +116,6 @@ async fn test_local_sent_in_clear_shield() {
let shield = event_item.get_shield(false);
assert_eq!(
shield,
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Not encrypted." })
);
}

0 comments on commit 5c185a5

Please sign in to comment.