Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

notifications: Remove custom truncation logic.

Tim Abbottb975301e8470
diff --git a/web/src/message_notifications.js b/web/src/message_notifications.js
index 9fd6b3b5162..781130a6c3c 100644
--- a/web/src/message_notifications.js
+++ b/web/src/message_notifications.js
@@ -44,18 +44,6 @@ function get_notification_content(message) {
content = "New direct message from " + message.sender_full_name;
}
- if (content.length > 150) {
- let i;
- // Truncate content at a word boundary
- for (i = 150; i > 0; i -= 1) {
- if (content[i] === " ") {
- break;
- }
- }
- content = content.slice(0, i);
- content += " [...]";
- }
-
return content;
}