summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Rhymen/go-whatsapp
diff options
context:
space:
mode:
authorNathanaƫl <contact@nathanaelhoun.fr>2021-06-16 20:35:09 +0200
committerGitHub <noreply@github.com>2021-06-16 20:35:09 +0200
commitdedc1c45a113d8db373d9e4638f54a0f9d29624f (patch)
treed7174b629d8d38fbc4e82c0fb1e9a8ae1eb27641 /vendor/github.com/Rhymen/go-whatsapp
parent6a12f9ff843e2114edb5c7c60cb5f9faf4f608a4 (diff)
downloadmatterbridge-msglm-dedc1c45a113d8db373d9e4638f54a0f9d29624f.tar.gz
matterbridge-msglm-dedc1c45a113d8db373d9e4638f54a0f9d29624f.tar.bz2
matterbridge-msglm-dedc1c45a113d8db373d9e4638f54a0f9d29624f.zip
Update Rhymen/go-whatsapp module to latest master (2b8a3e9b8aa2) (#1518)
Diffstat (limited to 'vendor/github.com/Rhymen/go-whatsapp')
-rw-r--r--vendor/github.com/Rhymen/go-whatsapp/message.go3
-rw-r--r--vendor/github.com/Rhymen/go-whatsapp/session.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/Rhymen/go-whatsapp/message.go b/vendor/github.com/Rhymen/go-whatsapp/message.go
index cbcb93b4..1acf881b 100644
--- a/vendor/github.com/Rhymen/go-whatsapp/message.go
+++ b/vendor/github.com/Rhymen/go-whatsapp/message.go
@@ -72,7 +72,8 @@ func (wac *Conn) Send(msg interface{}) (string, error) {
default:
return "ERROR", fmt.Errorf("cannot match type %T, use message types declared in the package", msg)
}
-
+ status := proto.WebMessageInfo_PENDING
+ msgProto.Status = &status
ch, err := wac.sendProto(msgProto)
if err != nil {
return "ERROR", fmt.Errorf("could not send proto: %v", err)
diff --git a/vendor/github.com/Rhymen/go-whatsapp/session.go b/vendor/github.com/Rhymen/go-whatsapp/session.go
index 704cd580..055a63dd 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{2, 2110, 10}
+var waVersion = []int{2, 2121, 6}
/*
Session contains session individual information. To be able to resume the connection without scanning the qr code