Block/delete e-mails Projects

Hello,
my situation is: in projects, there is a table to add users, to have vision in the portal/website. When we add an email to this table, an email is sent: “Project Collaboration Invitation”. I need to prevent this email from being sent.
I made the following server script to prevent this email from being sent:

from frappe.email.doctype.email_queue.email_queue import delete_email_queue

emails = frappe.get_all("Email Queue", filters={})

for email in emails:
    email_doc = frappe.get_doc("Email Queue", email.name)
    
    if email_doc.message and "Subject: Project Collaboration Invitation" in email_doc.message:
        delete_email_queue(email.name)

I just realized that the code in the welcome email is inverted. Where can I open a ticket to correct the problem?
When the “Welcome email sent” field is not marked for sending, it marks the field automatically and sends the email and when the field is marked for sending, it does not send the email.

project user:

def send_welcome_email(self):
                url = get_url(f"/project/?name={self.name}")
                messages = (
                        _("You have been invited to collaborate on the project: {0}").format(self.name),
                        url,
                        _("Join"),
                )
 
                content = """
<p>{0}.</p>
<p><a href="{1}">{2}</a></p>
                """
 
                for user in self.users:
                        if user.welcome_email_sent == 0:
                                frappe.sendmail(
                                        user.user,
                                        subject=_("Project Collaboration Invitation"),
                                        content=content.format(*messages),
                                )
                                user.welcome_email_sent = 1