mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-06-21 22:58:32 -04:00
sdk-ui: Make the SentInClear shield red.
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
4c220ed030
commit
b453a0204e
@@ -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,
|
||||
}),
|
||||
|
||||
@@ -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." })
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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." })
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user