From 53fe1b18184fc0967658805abc8560641f8d2cb0 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 21 Apr 2020 09:25:18 +0300 Subject: [PATCH] Update go-whatsapp. Fixes #169 --- go.mod | 2 +- go.sum | 2 ++ user.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index cb9957c..4221f82 100644 --- a/go.mod +++ b/go.mod @@ -18,4 +18,4 @@ require ( maunium.net/go/mautrix-appservice v0.1.0-alpha.6 ) -replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.2.4 +replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.2.5 diff --git a/go.sum b/go.sum index 659d5b4..5bdacc1 100644 --- a/go.sum +++ b/go.sum @@ -36,6 +36,8 @@ github.com/tulir/go-whatsapp v0.2.2 h1:uF2NQC6JSFUjA1Roj2KgFFzMHiSOrejk4Af/eLygr github.com/tulir/go-whatsapp v0.2.2/go.mod h1:gyw9zGup1/Y3ZQUueZaqz3iR/WX9a2Lth4aqEbXjkok= github.com/tulir/go-whatsapp v0.2.4 h1:b7Yzlh+SR46qzhuVbDedLL8YSg5U0VKolQ80atZoJW4= github.com/tulir/go-whatsapp v0.2.4/go.mod h1:gyw9zGup1/Y3ZQUueZaqz3iR/WX9a2Lth4aqEbXjkok= +github.com/tulir/go-whatsapp v0.2.5 h1:io7nw/b7/lQH5q9jeRkUD8Kw+teoANe16ZTh/JK7DDk= +github.com/tulir/go-whatsapp v0.2.5/go.mod h1:gyw9zGup1/Y3ZQUueZaqz3iR/WX9a2Lth4aqEbXjkok= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= diff --git a/user.go b/user.go index d2d3c08..b55714f 100644 --- a/user.go +++ b/user.go @@ -200,7 +200,7 @@ func (user *User) Connect(evenIfNoSession bool) bool { return false } user.Conn = whatsappExt.ExtendConn(conn) - _ = user.Conn.SetClientName("Mautrix-WhatsApp bridge", "mx-wa") + _ = user.Conn.SetClientName("Mautrix-WhatsApp bridge", "mx-wa", "0.1.0") user.log.Debugln("WhatsApp connection successful") user.Conn.AddHandler(user) return user.RestoreSession()