Update whatsmeow to maybe fix retry receipts

This commit is contained in:
Tulir Asokan 2021-11-30 15:14:56 +02:00
parent dac1d92427
commit 231691ebbd
5 changed files with 6 additions and 6 deletions

View file

@ -182,7 +182,7 @@ func (prov *ProvisioningAPI) BridgeStatePing(w http.ResponseWriter, r *http.Requ
global.StateEvent = StateRunning
var remote BridgeState
if user.IsConnected() {
if user.Client.IsLoggedIn {
if user.Client.IsLoggedIn() {
remote.StateEvent = StateConnected
} else if user.Session != nil {
remote.StateEvent = StateConnecting

2
go.mod
View file

@ -8,7 +8,7 @@ require (
github.com/mattn/go-sqlite3 v1.14.9
github.com/prometheus/client_golang v1.11.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go.mau.fi/whatsmeow v0.0.0-20211127091917-c24e7145c07f
go.mau.fi/whatsmeow v0.0.0-20211130131146-8752ed0761b5
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b

4
go.sum
View file

@ -139,8 +139,8 @@ github.com/tidwall/sjson v1.2.3 h1:5+deguEhHSEjmuICXZ21uSSsXotWMA0orU783+Z7Cp8=
github.com/tidwall/sjson v1.2.3/go.mod h1:5WdjKx3AQMvCJ4RG6/2UYT7dLrGvJUV1x4jdTAyGvZs=
go.mau.fi/libsignal v0.0.0-20211109153248-a67163214910 h1:9FFhG0OmkuMau5UEaTgiUQ+7cSbtbOQ7hiWKdN8OI3I=
go.mau.fi/libsignal v0.0.0-20211109153248-a67163214910/go.mod h1:AufGrvVh+00Nc07Jm4hTquh7yleZyn20tKJI2wCPAKg=
go.mau.fi/whatsmeow v0.0.0-20211127091917-c24e7145c07f h1:XsulPckHCIro+hxNz2OK5KWP811xfQ2mlbWLoxKo36w=
go.mau.fi/whatsmeow v0.0.0-20211127091917-c24e7145c07f/go.mod h1:8jUjOAi3xtGubxcZgG8uSHpAdyQXBRbWAfxkctX/4y4=
go.mau.fi/whatsmeow v0.0.0-20211130131146-8752ed0761b5 h1:/eSA8WxxVfg2kfCrzO/fY6bFgOCZm74n4QZ0sgbM98w=
go.mau.fi/whatsmeow v0.0.0-20211130131146-8752ed0761b5/go.mod h1:8jUjOAi3xtGubxcZgG8uSHpAdyQXBRbWAfxkctX/4y4=
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
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=

View file

@ -186,7 +186,7 @@ func (prov *ProvisioningAPI) Ping(w http.ResponseWriter, r *http.Request) {
if user.Client != nil {
wa["conn"] = map[string]interface{}{
"is_connected": user.Client.IsConnected(),
"is_logged_in": user.Client.IsLoggedIn,
"is_logged_in": user.Client.IsLoggedIn(),
}
}
resp := map[string]interface{}{

View file

@ -297,7 +297,7 @@ func (user *User) IsConnected() bool {
}
func (user *User) IsLoggedIn() bool {
return user.IsConnected() && user.Client.IsLoggedIn
return user.IsConnected() && user.Client.IsLoggedIn()
}
func (user *User) tryAutomaticDoublePuppeting() {