summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-03-28 00:18:03 +0100
committerGitHub <noreply@github.com>2020-03-28 00:18:03 +0100
commit1aa662f7637c8cf929fd9296449e19c57fbb074a (patch)
treef03c5bdcda6295511f2e962a56c910fdf36301ea
parent0b86b88de77ae364394bed4455813278bdfbdca9 (diff)
downloadmatterbridge-msglm-1aa662f7637c8cf929fd9296449e19c57fbb074a.tar.gz
matterbridge-msglm-1aa662f7637c8cf929fd9296449e19c57fbb074a.tar.bz2
matterbridge-msglm-1aa662f7637c8cf929fd9296449e19c57fbb074a.zip
Update client version whatsapp. Fixes #1061 (#1062)
See https://github.com/Rhymen/go-whatsapp/issues/305
-rw-r--r--bridge/whatsapp/whatsapp.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go
index 1a633024..8dfcb9cc 100644
--- a/bridge/whatsapp/whatsapp.go
+++ b/bridge/whatsapp/whatsapp.go
@@ -67,6 +67,7 @@ func (b *Bwhatsapp) Connect() error {
// https://github.com/Rhymen/go-whatsapp#creating-a-connection
b.Log.Debugln("Connecting to WhatsApp..")
conn, err := whatsapp.NewConn(20 * time.Second)
+ conn.SetClientVersion(0, 4, 1307)
if err != nil {
return errors.New("failed to connect to WhatsApp: " + err.Error())
}