Skip to content

Commit

Permalink
panic if we don't have a pre-key message
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Dec 2, 2024
1 parent c3d0c0e commit 7c50703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/olm/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,8 @@ mod test {

assert_eq!(alice_session.session_id(), bob_session.session_id());
assert_eq!(message.as_bytes(), plaintext);
} else {
panic!("Expected a pre-key message");
}

Ok(())
Expand Down

0 comments on commit 7c50703

Please sign in to comment.