summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/appstate/decode.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/appstate/decode.go')
-rw-r--r--vendor/go.mau.fi/whatsmeow/appstate/decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/appstate/decode.go b/vendor/go.mau.fi/whatsmeow/appstate/decode.go
index 5c895470..980c20de 100644
--- a/vendor/go.mau.fi/whatsmeow/appstate/decode.go
+++ b/vendor/go.mau.fi/whatsmeow/appstate/decode.go
@@ -290,7 +290,7 @@ func (proc *Processor) DecodePatches(list *PatchList, initialState HashState, va
if err != nil {
return
}
- patchMAC := generatePatchMAC(patch, list.Name, keys.PatchMAC)
+ patchMAC := generatePatchMAC(patch, list.Name, keys.PatchMAC, patch.GetVersion().GetVersion())
if !bytes.Equal(patchMAC, patch.GetPatchMac()) {
err = fmt.Errorf("failed to verify patch v%d: %w", version, ErrMismatchingPatchMAC)
return