To prevent a confusing experience with IgboSpeech, we want to prevent sending confirmation emails concerning merging and denying Example and Word suggestions for Nkọwa okwu users. The Igbo API Editor Platform is responsible for sending emails for several reasons. However, it doesn't have any logic to check whether the recipient should receive their email based on the product they were using.
Solution
Check to see if the Word or Example suggestion has the source: SuggestionSourceEnum.COMMUNITY value living on it. If it does, then we want to send the email since the source of the suggestion came from Nkọwa okwu.
Background
To prevent a confusing experience with IgboSpeech, we want to prevent sending confirmation emails concerning merging and denying Example and Word suggestions for Nkọwa okwu users. The Igbo API Editor Platform is responsible for sending emails for several reasons. However, it doesn't have any logic to check whether the recipient should receive their email based on the product they were using.
Solution
Check to see if the Word or Example suggestion has the
source: SuggestionSourceEnum.COMMUNITY
value living on it. If it does, then we want to send the email since the source of the suggestion came from Nkọwa okwu.