From 2f506425c25504662f50f49e742529195d63ff27 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 24 Aug 2020 23:35:08 +0200 Subject: Update whatsapp vendor and fix a panic (#1209) * Fix another whatsapp panic * Update whatsapp vendor --- vendor/github.com/Rhymen/go-whatsapp/conn.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/Rhymen/go-whatsapp/conn.go') diff --git a/vendor/github.com/Rhymen/go-whatsapp/conn.go b/vendor/github.com/Rhymen/go-whatsapp/conn.go index f8b57443..59445591 100644 --- a/vendor/github.com/Rhymen/go-whatsapp/conn.go +++ b/vendor/github.com/Rhymen/go-whatsapp/conn.go @@ -88,6 +88,8 @@ type Conn struct { Store *Store ServerLastSeen time.Time + timeTag string // last 3 digits obtained after a successful login takeover + longClientName string shortClientName string clientVersion string @@ -156,8 +158,8 @@ func (wac *Conn) connect() (err error) { }() dialer := &websocket.Dialer{ - ReadBufferSize: 25 * 1024 * 1024, - WriteBufferSize: 10 * 1024 * 1024, + ReadBufferSize: 0, + WriteBufferSize: 0, HandshakeTimeout: wac.msgTimeout, Proxy: wac.Proxy, } @@ -246,3 +248,11 @@ func (wac *Conn) keepAlive(minIntervalMs int, maxIntervalMs int) { } } } + +func (wac *Conn) GetConnected() bool { + return wac.connected +} + +func (wac *Conn) GetLoggedIn() bool { + return wac.loggedIn +} -- cgit v1.2.3