]> cat aescling's git repositories - mastodon.git/commitdiff
Icon for desktop notifications
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 21 Nov 2016 09:55:49 +0000 (10:55 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 21 Nov 2016 09:55:49 +0000 (10:55 +0100)
app/assets/javascripts/components/actions/notifications.jsx

index b34fc7289f6288af7c8e63fdea2fbe4e459fa6e5..97551ebf7e4fe8f78fe08db6a8f754397f7976a3 100644 (file)
@@ -37,7 +37,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
     const title = new IntlMessageFormat(intlMessages[`notification.${notification.type}`], intlLocale).format({ name: notification.account.display_name.length > 0 ? notification.account.display_name : notification.account.username });
     const body  = $('<p>').html(notification.status ? notification.status.content : '').text();
 
-    new Notification(title, { body });
+    new Notification(title, { body, icon: notification.account.avatar });
   };
 };