final pass #1720, closed #1720

This commit is contained in:
Julian Lam
2014-06-20 17:53:40 -04:00
parent d257632878
commit c41bb05711
8 changed files with 33 additions and 42 deletions

View File

@@ -208,10 +208,8 @@ function sendChatNotification(fromuid, touid, username, message) {
if (!module.parent.exports.isUserOnline(touid)) {
var notifText = '[[notifications:new_message_from, ' + username + ']]';
notifications.create({
body: {
short: notifText,
long: message
},
bodyShort: notifText,
bodyLong: message,
path: 'javascript:app.openChat('' + username + '', ' + fromuid + ');',
uniqueId: 'notification_' + fromuid + '_' + touid,
from: fromuid