'use strict';

const notifier = require('node-notifier');
const slackBrand = appRequire('slack-brand');

module.exports = function(webview) {
  webview.addEventListener('ipc-message', function(event) {
    if (event.channel === 'notify') {
      const options = event.args[0];

      options.icon = slackBrand.stickerImagePath;
      notifier.notify(options);
    }
  });
};

@@ -321,16 +321,57 @@
 gePath;%0A
+      options.hint = 'int:transient:1';%0A%0A
       no

Make notifications transient.