Skip to content

Commit

Permalink
bring back updating the hmac with the payload (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink authored Dec 20, 2024
1 parent e7630ac commit 7d863bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xmtp_mls/src/groups/mls_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1466,8 +1466,7 @@ where
let mut result = vec![];
for payload in payloads {
let mut sender_hmac = sender_hmac.clone();
// When we switch to V2, update with the header bytes.
sender_hmac.update(&[]);
sender_hmac.update(payload);
let sender_hmac = sender_hmac.finalize();

result.push(GroupMessageInput {
Expand Down

0 comments on commit 7d863bd

Please sign in to comment.