From 193e241f8d4ee3f91698a53b09e51664ac6d978a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 25 Oct 2022 13:27:35 +0100 Subject: [PATCH] fix profile bug --- clientapi/routing/membership.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{}