mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
message_notifications: Shorten other users string.
This makes it more likely to not be truncated.
This commit is contained in:
@@ -106,8 +106,7 @@ function get_notification_title(message, msg_count) {
|
|||||||
// If the message has too many recipients to list them all...
|
// If the message has too many recipients to list them all...
|
||||||
if (title.length + other_recipients.length > 50) {
|
if (title.length + other_recipients.length > 50) {
|
||||||
// Then count how many people are in the conversation and summarize
|
// Then count how many people are in the conversation and summarize
|
||||||
// by saying the conversation is with "you and [number] other people"
|
other_recipients = message.display_recipient.length - 2 + " more";
|
||||||
other_recipients = message.display_recipient.length - 2 + " other people";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
title += " (to you and " + other_recipients + ")";
|
title += " (to you and " + other_recipients + ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user