Fix state store not being updated on double puppet requests

This commit is contained in:
Tulir Asokan 2023-02-27 01:28:44 +02:00
parent 5f06d1d537
commit 59b6e9f272
3 changed files with 4 additions and 3 deletions

View file

@ -116,6 +116,7 @@ func (br *WABridge) newDoublePuppetClient(mxid id.UserID, accessToken string) (*
return nil, err
}
client.Log = br.AS.Log.With().Str("as_user_id", mxid.String()).Logger()
client.StateStore = br.AS.StateStore
client.Client = br.AS.HTTPClient
client.DefaultHTTPRetries = br.AS.DefaultHTTPRetries
return client, nil

2
go.mod
View file

@ -16,7 +16,7 @@ require (
golang.org/x/net v0.6.0
google.golang.org/protobuf v1.28.1
maunium.net/go/maulogger/v2 v2.4.1
maunium.net/go/mautrix v0.15.0-beta.1.0.20230225190531-920db9b4fb13
maunium.net/go/mautrix v0.15.0-beta.1.0.20230226232632-00f40652f33d
)
require (

4
go.sum
View file

@ -127,5 +127,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8=
maunium.net/go/maulogger/v2 v2.4.1/go.mod h1:omPuYwYBILeVQobz8uO3XC8DIRuEb5rXYlQSuqrbCho=
maunium.net/go/mautrix v0.15.0-beta.1.0.20230225190531-920db9b4fb13 h1:5H5kvOLYiz2rcDh+tRQQelwyCBKnBBeF+pAITBR9new=
maunium.net/go/mautrix v0.15.0-beta.1.0.20230225190531-920db9b4fb13/go.mod h1:AE3TCX9q4W7fYfrL/1RsuOell9rTUBO27XUULuwArH4=
maunium.net/go/mautrix v0.15.0-beta.1.0.20230226232632-00f40652f33d h1:16Q4co5TusYEovGLiHSkT6FY6fFn5tNNLCR3FvGCLFk=
maunium.net/go/mautrix v0.15.0-beta.1.0.20230226232632-00f40652f33d/go.mod h1:AE3TCX9q4W7fYfrL/1RsuOell9rTUBO27XUULuwArH4=