discourse/app
Martin Brennan 44f15d4281
FIX: Do not email group user with user_private_message notification (#11754)
There was an issue that occurred with this order of operations:

* An IMAP topic was created by emailing a group
* A second user was invited to the topic (not the OP and not the group)
* A user with access to the group replies to the topic
* The second user receives a user_private_message notification email because of their involvement in the topic
* The second user replies to the email via email

This new reply would then go and notify the other group PM users, except for those who emailed the group topic directly, which is handled via the group SMTP mailer. However because the new post already has an incoming email because it is parsed via the Email::Receiver via POP3 the group SMTP section of the post alerter is skipped, and the group's email address is not ignored for the user_private_message notification.

This PR fixes it so the group is not ever sent an email via the PM notification. This is important because any new emails in the group's IMAP inbox will be picked up by the Imap::Sync code and created as a new topic which is not at all desirable.

Also in this PR I split up the specs a bit more for group SMTP in the post alerter to make them easier to read and they each only test one thing.
2021-01-20 10:53:08 +10:00
..
assets FIX: currentUser was missing appEvents (#11758) 2021-01-19 14:37:21 -05:00
controllers FIX: Make sure login required skipped for confirm new email routes (#11748) 2021-01-20 10:52:25 +10:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
jobs DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
mailers FEATURE: reason to reject user signup (#11700) 2021-01-15 09:43:26 +11:00
models DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
serializers FEATURE: reason to reject user signup (#11700) 2021-01-15 09:43:26 +11:00
services FIX: Do not email group user with user_private_message notification (#11754) 2021-01-20 10:53:08 +10:00
views FIX: Safari iOS page title and url regression when sharing (#11699) 2021-01-13 11:10:43 -05:00