mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	emails: Mention why user is getting stream message notification.
This commit is contained in:
		@@ -36,6 +36,8 @@
 | 
			
		||||
    —<br>
 | 
			
		||||
    {% if mention %}
 | 
			
		||||
    You are receiving this email because you were mentioned.<br>
 | 
			
		||||
    {% elif stream_email_notify %}
 | 
			
		||||
    You are receiving this email because you have email notifications enabled for this stream.<br>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    <a href="{{ realm_uri }}/#settings/notifications">Manage email preferences</a> | <a href="{{ unsubscribe_link }}">Unsubscribe</a> from missed message emails.<br>
 | 
			
		||||
    {% if reply_to_zulip %}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,8 @@
 | 
			
		||||
 | 
			
		||||
{% if mention %}
 | 
			
		||||
You are receiving this email because you were mentioned.
 | 
			
		||||
{% elif stream_email_notify %}
 | 
			
		||||
You are receiving this email because you have email notifications enabled for this stream.<br>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
Manage email preferences:
 | 
			
		||||
 
 | 
			
		||||
@@ -271,7 +271,9 @@ class TestMissedMessages(ZulipTestCase):
 | 
			
		||||
        msg_id = self.send_stream_message(
 | 
			
		||||
            self.example_email('othello'), "denmark",
 | 
			
		||||
            '12')
 | 
			
		||||
        body = 'Othello, the Moor of Venice --- 1 2 3 4 5 6 7 8 9 10 12'
 | 
			
		||||
        body = ("Othello, the Moor of Venice --- 1 2 3 4 5 6 7 8 9 10 12 "
 | 
			
		||||
                "You are receiving this email "
 | 
			
		||||
                "because you have email notifications enabled for this stream.")
 | 
			
		||||
        email_subject = '#Denmark > test'
 | 
			
		||||
        self._test_cases(tokens, msg_id, body, email_subject, send_as_user, trigger='stream_email_notify')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user