sdk-ui: Make the SentInClear shield red.

This commit is contained in:
Doug
2024-08-01 12:54:06 +01:00
committed by Jorge Martin Espinosa
parent 4c220ed030
commit b453a0204e
2 changed files with 3 additions and 3 deletions

View File

@@ -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,
}),

View File

@@ -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." })
);
}