Skip to content

Commit

Permalink
sdk-ui: Make the SentInClear shield red.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored and jmartinesp committed Aug 5, 2024
1 parent 4c220ed commit b453a02
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-ui/src/timeline/event_item/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ impl EventTimelineItem {
Some(info.verification_state.to_shield_state_lax())
}
}
None => Some(ShieldState::Grey {
None => Some(ShieldState::Red {
code: ShieldStateCode::SentInClear,
message: SENT_IN_CLEAR,
}),
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::Grey { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
);
}

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::Grey { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
Some(ShieldState::Red { code: ShieldStateCode::SentInClear, message: "Sent in clear." })
);
}

0 comments on commit b453a02

Please sign in to comment.