mirror of https://github.com/zulip/zulip.git
missed messages: Change subject to always use the plural for Zulips.
Works better for threading in email clients.
This commit is contained in:
parent
60e0bb3a04
commit
fda65b3b37
|
@ -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)
|
senders = set(m.sender.full_name for m in missed_messages)
|
||||||
sender_str = ", ".join(senders)
|
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,)
|
from_email = 'Zulip <%s>' % (settings.NOREPLY_EMAIL_ADDRESS,)
|
||||||
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
|
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
|
||||||
# If this setting is enabled, you can reply to the Zulip
|
# If this setting is enabled, you can reply to the Zulip
|
||||||
|
|
Loading…
Reference in New Issue