4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-04 07:47:45 +00:00

Update dependencies (#2180)

* Update dependencies

* Fix whatsmeow API changes
This commit is contained in:
Wim
2024-08-27 19:04:05 +02:00
committed by GitHub
parent d16645c952
commit c4157a4d5b
589 changed files with 681707 additions and 198856 deletions

View File

@ -74,7 +74,7 @@ func (vc WAVersionContainer) ProtoAppVersion() *waProto.ClientPayload_UserAgent_
}
// waVersion is the WhatsApp web client version
var waVersion = WAVersionContainer{2, 2412, 50}
var waVersion = WAVersionContainer{2, 3000, 1015853550}
// waVersionHash is the md5 hash of a dot-separated waVersion
var waVersionHash [16]byte
@ -153,7 +153,7 @@ func (device *Device) getRegistrationPayload() *waProto.ClientPayload {
ERegid: regID,
EKeytype: []byte{ecc.DjbType},
EIdent: device.IdentityKey.Pub[:],
ESkeyId: preKeyID[1:],
ESkeyID: preKeyID[1:],
ESkeyVal: device.SignedPreKey.Pub[:],
ESkeySig: device.SignedPreKey.Signature[:],
BuildHash: waVersionHash[:],