passing in a picture into notifications now

This commit is contained in:
Julian Lam
2014-02-15 15:43:44 -05:00
parent ef45ae9ba3
commit 9e64f4e303
6 changed files with 34 additions and 10 deletions

View File

@@ -106,7 +106,8 @@ SocketModules.chats.send = function(socket, data) {
notifications.create({
text: notifText,
path: 'javascript:app.openChat('' + username + '', ' + socket.uid + ');',
uniqueId: 'notification_' + socket.uid + '_' + touid
uniqueId: 'notification_' + socket.uid + '_' + touid,
from: socket.uid
}, function(nid) {
notifications.push(nid, [touid], function(success) {