api: add chat ID to SecureJoinInviterProgress

This commit is contained in:
link2xt
2025-09-23 14:25:55 +00:00
committed by l
parent 4c66518a68
commit a506e2d5a2
4 changed files with 31 additions and 5 deletions

View File

@@ -380,6 +380,7 @@ async fn test_setup_contact_bob_knows_alice() -> Result<()> {
contact_id,
chat_type,
progress,
..
} => {
assert_eq!(contact_id, contact_bob.id);
assert_eq!(chat_type, Chattype::Single);
@@ -552,10 +553,12 @@ async fn test_secure_join() -> Result<()> {
EventType::SecurejoinInviterProgress {
contact_id,
chat_type,
chat_id,
progress,
} => {
assert_eq!(contact_id, contact_bob.id);
assert_eq!(chat_type, Chattype::Group);
assert_eq!(chat_id, alice_chatid);
assert_eq!(progress, 1000);
}
_ => unreachable!(),