summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authormegos <gmegos.27@gmail.com>2017-07-19 22:02:20 +0900
committerGeorge Goldberg <george@gberg.me>2017-07-19 14:02:20 +0100
commitd064f5eba364cba03198ab92a7588e34a9869b69 (patch)
treedf3567cbcd2932796bdf0d1b25e390afff117e04 /webapp
parentfe368a74565e736ad1fb1dfc20ab364379d83ae9 (diff)
downloadchat-d064f5eba364cba03198ab92a7588e34a9869b69.tar.gz
chat-d064f5eba364cba03198ab92a7588e34a9869b69.tar.bz2
chat-d064f5eba364cba03198ab92a7588e34a9869b69.zip
Fixed notification text replace line feed to space (#6970)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/notification_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/notification_actions.jsx b/webapp/actions/notification_actions.jsx
index c07dc0d56..33709458a 100644
--- a/webapp/actions/notification_actions.jsx
+++ b/webapp/actions/notification_actions.jsx
@@ -87,7 +87,7 @@ export function sendDesktopNotification(post, msgProps) {
image |= attachment.image_url.length > 0;
});
- notifyText.replace(/\n+/g, ' ');
+ notifyText = notifyText.replace(/\n+/g, ' ');
if (notifyText.length > 50) {
notifyText = notifyText.substring(0, 49) + '...';
}