forked from lug/matterbridge
Update dependencies (#1841)
This commit is contained in:
4
vendor/go.mau.fi/whatsmeow/pair.go
vendored
4
vendor/go.mau.fi/whatsmeow/pair.go
vendored
@@ -138,13 +138,13 @@ func (cli *Client) handlePair(deviceIdentityBytes []byte, reqID, businessName, p
|
||||
return fmt.Errorf("failed to parse device identity details in pair success message: %w", err)
|
||||
}
|
||||
|
||||
cli.Store.Account = proto.Clone(&deviceIdentity).(*waProto.ADVSignedDeviceIdentity)
|
||||
|
||||
mainDeviceJID := jid
|
||||
mainDeviceJID.Device = 0
|
||||
mainDeviceIdentity := *(*[32]byte)(deviceIdentity.AccountSignatureKey)
|
||||
deviceIdentity.AccountSignatureKey = nil
|
||||
|
||||
cli.Store.Account = proto.Clone(&deviceIdentity).(*waProto.ADVSignedDeviceIdentity)
|
||||
|
||||
selfSignedDeviceIdentity, err := proto.Marshal(&deviceIdentity)
|
||||
if err != nil {
|
||||
cli.sendIQError(reqID, 500, "internal-error")
|
||||
|
||||
Reference in New Issue
Block a user