diff --git a/roomserver/internal/perform/perform_invite.go b/roomserver/internal/perform/perform_invite.go index 39f48a4a5..984d3d862 100644 --- a/roomserver/internal/perform/perform_invite.go +++ b/roomserver/internal/perform/perform_invite.go @@ -90,6 +90,7 @@ func (r *Inviter) PerformInvite( if err = r.UserAPI.QueryAccountAvailability(ctx, userReq, userRes); err != nil { return nil, fmt.Errorf("r.UserAPI.QueryAccountAvailability: %w", err) } + // If the user ID is "available" then that user doesn't exist. if userRes.Available { res.Error = &api.PerformError{ Code: api.PerformErrorNotFound,