ruma_macros/events/util.rs
1use super::event_parse::{EventKind, EventKindVariation};
2
3pub(crate) fn is_non_stripped_room_event(kind: EventKind, var: EventKindVariation) -> bool {
4 matches!(kind, EventKind::MessageLike | EventKind::State)
5 && matches!(
6 var,
7 EventKindVariation::Original
8 | EventKindVariation::OriginalSync
9 | EventKindVariation::Redacted
10 | EventKindVariation::RedactedSync
11 )
12}