From 0c3b08cd978d1d5303872d9067eaa5e2bd01a525 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 28 Dec 2020 00:22:40 +0200 Subject: [PATCH] Update mautrix-go --- go.mod | 2 +- go.sum | 2 ++ user.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b774c6c..b4f9242 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( gopkg.in/yaml.v2 v2.3.0 maunium.net/go/mauflag v1.0.0 maunium.net/go/maulogger/v2 v2.1.1 - maunium.net/go/mautrix v0.8.0-rc.4 + maunium.net/go/mautrix v0.8.0 ) replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.3.13 diff --git a/go.sum b/go.sum index c824928..84ada78 100644 --- a/go.sum +++ b/go.sum @@ -220,3 +220,5 @@ maunium.net/go/mautrix v0.8.0-rc.3 h1:bb18oNxHUmeiJ0V63YTRVGMjgoeLwu+G40l4n42Z5G maunium.net/go/mautrix v0.8.0-rc.3/go.mod h1:TtVePxoEaw6+RZDKVajw66Yaj1lqLjH8l4FF3krsqWY= maunium.net/go/mautrix v0.8.0-rc.4 h1:3JXoL2JJPE5nh/YSw9sv9dQA9ulma9yHTMOBMBY1xdo= maunium.net/go/mautrix v0.8.0-rc.4/go.mod h1:TtVePxoEaw6+RZDKVajw66Yaj1lqLjH8l4FF3krsqWY= +maunium.net/go/mautrix v0.8.0 h1:G1jlVslNUTWEqaxuatHAMmzTWnGyoCIc4tAF5GpQJd8= +maunium.net/go/mautrix v0.8.0/go.mod h1:TtVePxoEaw6+RZDKVajw66Yaj1lqLjH8l4FF3krsqWY= diff --git a/user.go b/user.go index 0d08938..69a2b4f 100644 --- a/user.go +++ b/user.go @@ -529,6 +529,7 @@ func (user *User) HandleStreamEvent(evt whatsappExt.StreamEvent) { user.log.Infoln("Stream went to sleep soon after reconnection, making new post-connection ping in 20 seconds") go func() { time.Sleep(20 * time.Second) + // TODO if this happens during the post-login sync, it can get stuck forever user.postConnPing() }() }