diff --git a/CHANGELOG.md b/CHANGELOG.md index d393d94e..8291e4c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ Release date: TBD ### Improvements +#### Windows + - [Windows 7/8] Added support to open the message when clicking desktop notification. + [#67](https://github.com/mattermost/desktop/issues/67) + - Added support for different DPI across monitors. + [#357](https://github.com/mattermost/desktop/issues/357) + ### Bug Fixes --- diff --git a/package.json b/package.json index 84136bc7..54375de8 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "cross-env": "^4.0.0", "css-loader": "^0.28.1", "devtron": "^1.4.0", - "electron": "1.6.6", + "electron": "1.6.10", "electron-builder": "17.4.0", "electron-builder-squirrel-windows": "17.4.0", "electron-connect": "^0.6.1", diff --git a/src/main.js b/src/main.js index bcf284d0..d1f81e9c 100644 --- a/src/main.js +++ b/src/main.js @@ -56,7 +56,6 @@ const os = require('os'); const path = require('path'); var settings = require('./common/settings'); -const osVersion = require('./common/osVersion'); var certificateStore = require('./main/certificateStore').load(path.resolve(app.getPath('userData'), 'certificate.json')); const {createMainWindow} = require('./main/mainWindow'); const appMenu = require('./main/menus/app'); @@ -428,19 +427,6 @@ app.on('ready', () => { mainWindow.focus(); }); - ipcMain.on('notified', (event, arg) => { - if (process.platform === 'win32') { - // On Windows 8.1 and Windows 8, a shortcut with a Application User Model ID must be installed to the Start screen. - // In current version, use tray balloon for notification - if (osVersion.isLowerThanOrEqualWindows8_1()) { - trayIcon.displayBalloon({ - icon: path.resolve(assetsDir, 'appicon.png'), - title: arg.title, - content: arg.options.body - }); - } - } - }); // Set overlay icon from dataURL // Set trayicon to show "dot"