diff options
author | Wim <wim@42.be> | 2020-04-09 22:30:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 22:30:08 +0200 |
commit | 8950575bfbc97ec80b8648f732c02fad63a6d055 (patch) | |
tree | bc6815de4a0cb1a2c7d9bf0796d173b2a356d7b0 /vendor/github.com/Rhymen/go-whatsapp/session.go | |
parent | 11fc4c286fbcd6c1519362d2b0123ebd4ab19067 (diff) | |
download | matterbridge-msglm-8950575bfbc97ec80b8648f732c02fad63a6d055.tar.gz matterbridge-msglm-8950575bfbc97ec80b8648f732c02fad63a6d055.tar.bz2 matterbridge-msglm-8950575bfbc97ec80b8648f732c02fad63a6d055.zip |
Update Rhymen/go-whatsapp vendor and whatsapp version (#1078)
Diffstat (limited to 'vendor/github.com/Rhymen/go-whatsapp/session.go')
-rw-r--r-- | vendor/github.com/Rhymen/go-whatsapp/session.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/Rhymen/go-whatsapp/session.go b/vendor/github.com/Rhymen/go-whatsapp/session.go index e13c4504..b4690d21 100644 --- a/vendor/github.com/Rhymen/go-whatsapp/session.go +++ b/vendor/github.com/Rhymen/go-whatsapp/session.go @@ -18,7 +18,7 @@ import ( ) //represents the WhatsAppWeb client version -var waVersion = []int{0, 3, 3324} +var waVersion = []int{0, 4, 2080} /* Session contains session individual information. To be able to resume the connection without scanning the qr code @@ -110,7 +110,7 @@ func CheckCurrentServerVersion() ([]int, error) { login := []interface{}{"admin", "init", waVersion, []string{wac.longClientName, wac.shortClientName}, b64ClientId, true} loginChan, err := wac.writeJson(login) if err != nil { - return nil, fmt.Errorf("error writing login", err) + return nil, fmt.Errorf("error writing login: %s", err.Error()) } // Retrieve an answer from the websocket @@ -123,7 +123,7 @@ func CheckCurrentServerVersion() ([]int, error) { var resp map[string]interface{} if err = json.Unmarshal([]byte(r), &resp); err != nil { - return nil, fmt.Errorf("error decoding login", err) + return nil, fmt.Errorf("error decoding login: %s", err.Error()) } // Take the curr property as X.Y.Z and split it into as int slice @@ -151,7 +151,7 @@ func (wac *Conn) SetClientName(long, short string) error { /* SetClientVersion sets WhatsApp client version -Default value is 0.3.3324 +Default value is 0.4.2080 */ func (wac *Conn) SetClientVersion(major int, minor int, patch int) { waVersion = []int{major, minor, patch} |