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:
@ -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[:],
|
||||
|
Reference in New Issue
Block a user