Skip to content

Commit

Permalink
add a dm and a message
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 10, 2024
1 parent 95d0376 commit f8ae77b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2522,14 +2522,22 @@ mod tests {
alix_group.send(b"Hello there".to_vec()).await.unwrap();
message_callbacks.wait_for_delivery(None).await.unwrap();

let dm = bo
.conversations()
.create_dm(alix.account_address.clone())
.await
.unwrap();
dm.send(b"Hello again".to_vec()).await.unwrap();
message_callbacks.wait_for_delivery(None).await.unwrap();

// Uncomment the following lines to add more group name updates
bo_group
.update_group_name("Old Name3".to_string())
.await
.unwrap();
message_callbacks.wait_for_delivery(None).await.unwrap();

assert_eq!(message_callbacks.message_count(), 4);
assert_eq!(message_callbacks.message_count(), 6);

stream_messages.end_and_wait().await.unwrap();

Expand Down

0 comments on commit f8ae77b

Please sign in to comment.