Skip to content

Commit 8eb7264

Browse files
committed
test(sdk): Test that m.room.member for an invite can be a latest event candidate.
1 parent a4bd36c commit 8eb7264

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/matrix-sdk/src/latest_events/latest_event.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,21 @@ mod tests_latest_event_content {
12671267
is not a candidate
12681268
);
12691269
}
1270+
1271+
#[test]
1272+
fn test_invite() {
1273+
use ruma::events::room::member::MembershipState;
1274+
1275+
assert_latest_event_content!(
1276+
event | event_factory | {
1277+
event_factory
1278+
.member(user_id!("@mnt.io:matrix.org"))
1279+
.membership(MembershipState::Invite)
1280+
.into_event()
1281+
}
1282+
is a candidate
1283+
);
1284+
}
12701285
}
12711286

12721287
#[cfg(test)]

0 commit comments

Comments
 (0)