missed messages: Change subject to always use the plural for Zulips.

Works better for threading in email clients.
This commit is contained in:
Rishi Gupta 2017-05-04 16:12:22 -07:00 committed by Tim Abbott
parent 60e0bb3a04
commit fda65b3b37
1 changed files with 1 additions and 2 deletions

View File

@ -278,9 +278,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile, missed_messages, m
senders = set(m.sender.full_name for m in missed_messages)
sender_str = ", ".join(senders)
plural_messages = 's' if len(missed_messages) > 1 else ''
subject = "Missed Zulip%s from %s" % (plural_messages, sender_str)
subject = "Missed Zulips from %s" % (sender_str,)
from_email = 'Zulip <%s>' % (settings.NOREPLY_EMAIL_ADDRESS,)
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
# If this setting is enabled, you can reply to the Zulip