5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 10:30:26 +00:00

Update client version whatsapp. Fixes #1061 (#1062)

See https://github.com/Rhymen/go-whatsapp/issues/305
This commit is contained in:
Wim 2020-03-28 00:18:03 +01:00 committed by GitHub
parent 0b86b88de7
commit 1aa662f763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}