From 7c579ad972f578786de83bce0ad7732b63279817 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 3 May 2022 15:35:02 +0300 Subject: [PATCH] Update whatsmeow for new xml-not-well-formed debugging --- go.mod | 2 +- go.sum | 4 ++-- user.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 738e747..7f86d74 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/prometheus/client_golang v1.11.1 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e github.com/tidwall/gjson v1.14.1 - go.mau.fi/whatsmeow v0.0.0-20220502122315-61256be77a41 + go.mau.fi/whatsmeow v0.0.0-20220503123407-9c7bffd59416 golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 google.golang.org/protobuf v1.28.0 diff --git a/go.sum b/go.sum index bb1545f..34702dc 100644 --- a/go.sum +++ b/go.sum @@ -120,8 +120,8 @@ github.com/yuin/goldmark v1.4.12 h1:6hffw6vALvEDqJ19dOJvJKOoAOKe4NDaTqvd2sktGN0= github.com/yuin/goldmark v1.4.12/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0 h1:3IQF2bgAyibdo77hTejwuJe4jlypj9QaE4xCQuxrThM= go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0/go.mod h1:kBOXTvYyDG/q1Ihgvd4J6WenGPh7wtEGvPKF6vmf5ak= -go.mau.fi/whatsmeow v0.0.0-20220502122315-61256be77a41 h1:tqA61ZIFF9M7UIr4BZkrPQW0ru1sGlBsFrPpw2c8C54= -go.mau.fi/whatsmeow v0.0.0-20220502122315-61256be77a41/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c= +go.mau.fi/whatsmeow v0.0.0-20220503123407-9c7bffd59416 h1:00sfiSrvHNQxPqeuHb23ZTd4kOhMs4yhpryCRpLd3pE= +go.mau.fi/whatsmeow v0.0.0-20220503123407-9c7bffd59416/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= diff --git a/user.go b/user.go index 3dc13f6..5d3acf8 100644 --- a/user.go +++ b/user.go @@ -335,6 +335,7 @@ var ErrAlreadyLoggedIn = errors.New("already logged in") func (user *User) createClient(sess *store.Device) { user.Client = whatsmeow.NewClient(sess, &waLogger{user.log.Sub("Client")}) user.Client.DebugDecodeBeforeSend = user.bridge.Config.WhatsApp.DebugDecodeBeforeSend + user.Client.OneMessageAtATime = user.bridge.Config.WhatsApp.DebugDecodeBeforeSend user.Client.AddEventHandler(user.HandleEvent) user.Client.SetForceActiveDeliveryReceipts(user.bridge.Config.Bridge.ForceActiveDeliveryReceipts) user.Client.GetMessageForRetry = func(to types.JID, id types.MessageID) *waProto.Message {