appservice: remove unnecessary parameter in ping
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Tulir Asokan 2025-07-01 23:29:43 +03:00
commit 71b994b3fd
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ import (
"maunium.net/go/mautrix"
)
func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context, appserviceID string) {
func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context) {
var pingResp *mautrix.RespAppservicePing
var txnID string
var retryCount int
@ -27,7 +27,7 @@ func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context, appserv
const maxRetries = 6
for {
txnID = intent.TxnID()
pingResp, err = intent.AppservicePing(ctx, appserviceID, txnID)
pingResp, err = intent.AppservicePing(ctx, intent.as.Registration.ID, txnID)
if err == nil {
break
}

View file

@ -343,7 +343,7 @@ func (br *Connector) ensureConnection(ctx context.Context) {
return
}
br.Bot.EnsureAppserviceConnection(ctx, br.Config.AppService.ID)
br.Bot.EnsureAppserviceConnection(ctx)
}
func (br *Connector) fetchMediaConfig(ctx context.Context) {