1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Truncate message in desktop notification

This commit is contained in:
Tim Düsterhus 2014-07-30 21:43:00 +02:00
parent 3e75057fe9
commit dae0488b57

View File

@ -820,7 +820,7 @@ Send out notifications for the given `message`. The number of unread messages wi
newMessageCount: ++newMessageCount newMessageCount: ++newMessageCount
title = WCF.Language.get 'chat.global.notify.title' title = WCF.Language.get 'chat.global.notify.title'
content = "#{message.username}#{message.separator} #{message.message}" content = "#{message.username}#{message.separator} #{if message.message.length > 50 then message.message[0..50] + '\u2026' else message.message}"
if window.Notification?.permission is 'granted' if window.Notification?.permission is 'granted'
do -> do ->