Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
missedmessage_email: Add explicit DIRECT_MESSAGE_GROUP branch.
Prakhar Pratyush87d40486eaf4
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.pyindex 1a527660f3a..c11241e15a4 100644--- a/zerver/lib/email_notifications.py+++ b/zerver/lib/email_notifications.py@@ -462,6 +462,8 @@ def do_send_missedmessage_events_reply_in_zulip(message = missed_message["message"]if message.recipient.type == Recipient.PERSONAL:recipients.add((message.recipient_id, message.sender_id))+ elif message.recipient.type == Recipient.DIRECT_MESSAGE_GROUP:+ recipients.add((message.recipient_id, ""))else:recipients.add((message.recipient_id, message.topic_name().lower()))assert len(recipients) == 1, f"Unexpectedly multiple recipients: {recipients!r}"