mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
Fix setting flag when using default homeserver URL for double puppeting
This commit is contained in:
parent
0fb0f32c6d
commit
6e56590fff
1 changed files with 1 additions and 1 deletions
|
|
@ -309,9 +309,9 @@ func (as *AppService) NewMautrixClient(userID id.UserID) *mautrix.Client {
|
|||
func (as *AppService) NewExternalMautrixClient(userID id.UserID, token string, homeserverURL string) (*mautrix.Client, error) {
|
||||
client := as.NewMautrixClient(userID)
|
||||
client.AccessToken = token
|
||||
client.SetAppServiceUserID = false
|
||||
if homeserverURL != "" {
|
||||
client.Client = &http.Client{Timeout: 180 * time.Second}
|
||||
client.SetAppServiceUserID = false
|
||||
var err error
|
||||
client.HomeserverURL, err = mautrix.ParseAndNormalizeBaseURL(homeserverURL)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue