diff --git a/app/util/Notifier.js b/app/util/Notifier.js index c0475779..4d530ea4 100644 --- a/app/util/Notifier.js +++ b/app/util/Notifier.js @@ -44,14 +44,13 @@ Ext.define('Rambox.util.Notifier', { var notification = new Notification(view.record.get('name'), { body: text, - icon: view.tab.icon, + icon: view.icon, silent: view.record.get('muted') }); - notification.onclick = function() { - ipc.send('toggleWin', true); - Ext.cq1('app-main').setActiveTab(view); + notification.onclick = function(e) { + view.showWindowAndActivateTab(e); }; - } + }; } });