diff --git a/clientapi/routing/membership.go b/clientapi/routing/membership.go index b3e01b091..94ba17a02 100644 --- a/clientapi/routing/membership.go +++ b/clientapi/routing/membership.go @@ -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{}