From 4cc2c914e634eb8c79eb61aa1bc29faf6021ffcf Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 22 Nov 2020 15:55:57 +0100 Subject: Update vendor (#1297) --- vendor/github.com/Rhymen/go-whatsapp/read.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vendor/github.com/Rhymen/go-whatsapp/read.go') diff --git a/vendor/github.com/Rhymen/go-whatsapp/read.go b/vendor/github.com/Rhymen/go-whatsapp/read.go index c35f7f0e..81e16619 100644 --- a/vendor/github.com/Rhymen/go-whatsapp/read.go +++ b/vendor/github.com/Rhymen/go-whatsapp/read.go @@ -62,6 +62,10 @@ func (wac *Conn) processReadData(msgType int, msg []byte) error { data[0] = "!" } + if len(data) == 2 && len(data[1]) == 0 { + return nil + } + if len(data) != 2 || len(data[1]) == 0 { return ErrInvalidWsData } -- cgit v1.2.3