From ac61081624e63bb746a7cfaf7d77177f86613e77 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 6 Jun 2023 11:08:26 -0600 Subject: [PATCH] Remove redundant check in fed/SendInvite --- federationapi/internal/perform.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index ef1396f70..2d59d0f93 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -521,11 +521,6 @@ func (r *FederationInternalAPI) SendInvite( if err != nil { return nil, err } - // For portable accounts, we need to verify the inviter domain is still associated with this server. - // The userID of the inviter may have changed to another server in which case we cannot send the invite. - if !r.cfg.Matrix.IsLocalServerName(inviter.Domain()) { - return nil, fmt.Errorf("the invite must be from a local user") - } if event.StateKey() == nil { return nil, errors.New("invite must be a state event")