From 031d712905cc37e9bf18f5b12c53a8c047423bae Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 9 Mar 2022 16:44:25 +0200 Subject: [PATCH] Update whatsmeow --- go.mod | 2 +- go.sum | 4 ++-- portal.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 8c77b1b..01e9a18 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.0 - go.mau.fi/whatsmeow v0.0.0-20220308120934-6f1a080a0f04 + go.mau.fi/whatsmeow v0.0.0-20220309134402-6c95a0dfb20d golang.org/x/image v0.0.0-20220302094943-723b81ca9867 golang.org/x/net v0.0.0-20220225172249-27dd8689420f google.golang.org/protobuf v1.27.1 diff --git a/go.sum b/go.sum index f8cb79d..1208e08 100644 --- a/go.sum +++ b/go.sum @@ -122,8 +122,8 @@ github.com/tidwall/sjson v1.2.4 h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc= github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= go.mau.fi/libsignal v0.0.0-20220308120827-0d87a03fd7c7 h1:L09XYQRGJwC6KbJumz3cD/6JTUAPNZHfnu8hroqm1KE= go.mau.fi/libsignal v0.0.0-20220308120827-0d87a03fd7c7/go.mod h1:LjEYzdnRUcRArJJUUHQUfMU1A+WzEM73qBTirXluuaY= -go.mau.fi/whatsmeow v0.0.0-20220308120934-6f1a080a0f04 h1:kG1Th8Jb1G36uls1VdgopZvYdZi04OcfEJ9Otg2qkno= -go.mau.fi/whatsmeow v0.0.0-20220308120934-6f1a080a0f04/go.mod h1:nH4IwHZf+Ks61nM5p71jZqLXiT0NpG+0uR/WqzCqHH8= +go.mau.fi/whatsmeow v0.0.0-20220309134402-6c95a0dfb20d h1:pjPvv93XTsXVFMypsIdSYisbsAPDZLJ4y11XL1sqQ7k= +go.mau.fi/whatsmeow v0.0.0-20220309134402-6c95a0dfb20d/go.mod h1:nH4IwHZf+Ks61nM5p71jZqLXiT0NpG+0uR/WqzCqHH8= 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/portal.go b/portal.go index 86227b9..b0cdafa 100644 --- a/portal.go +++ b/portal.go @@ -2942,7 +2942,7 @@ func (portal *Portal) setTyping(userIDs []id.UserID, state types.ChatPresence) { continue } portal.log.Debugfln("Bridging typing change from %s to chat presence %s", state, user.MXID) - err := user.Client.SendChatPresence(state, portal.Key.JID) + err := user.Client.SendChatPresence(portal.Key.JID, state, types.ChatPresenceMediaText) if err != nil { portal.log.Warnln("Error sending chat presence:", err) }