fix profile bug

This commit is contained in:
Neil Alexander 2022-10-25 13:27:35 +01:00
parent 0e14cbdd42
commit 193e241f8d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -342,7 +342,7 @@ func loadProfile(
}
var profile *authtypes.Profile
if !cfg.Matrix.IsLocalServerName(serverName) {
if cfg.Matrix.IsLocalServerName(serverName) {
profile, err = appserviceAPI.RetrieveUserProfile(ctx, userID, asAPI, profileAPI)
} else {
profile = &authtypes.Profile{}