test(sdk): Test that m.room.member for an invite can be a latest event candidate.

This commit is contained in:
Ivan Enderlin
2025-10-01 17:11:11 +02:00
parent a4bd36cbe8
commit 8eb7264e5d

View File

@@ -1267,6 +1267,21 @@ mod tests_latest_event_content {
is not a candidate
);
}
#[test]
fn test_invite() {
use ruma::events::room::member::MembershipState;
assert_latest_event_content!(
event | event_factory | {
event_factory
.member(user_id!("@mnt.io:matrix.org"))
.membership(MembershipState::Invite)
.into_event()
}
is a candidate
);
}
}
#[cfg(test)]