Tweak invites

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

View file

@ -215,7 +215,7 @@ func queryIDServerStoreInvite(
}
var profile *authtypes.Profile
if serverName == cfg.Matrix.ServerName {
if cfg.Matrix.IsLocalServerName(serverName) {
res := &userapi.QueryProfileResponse{}
err = userAPI.QueryProfile(ctx, &userapi.QueryProfileRequest{UserID: device.UserID}, res)
if err != nil {