Browse Source

Merge pull request #2994 from vector-im/dbkr/carlos22_notif_fixes

Fixes to electron desktop notifs
pull/2999/head
Richard van der Hoff 6 years ago committed by GitHub
parent
commit
686a3c693a
  1. 9
      src/vector/platform/ElectronPlatform.js

9
src/vector/platform/ElectronPlatform.js

@ -97,7 +97,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
room_id: room.roomId
});
global.focus();
electron.remote.getCurrentWindow().restore();
const currentWin = electron.remote.getCurrentWindow();
currentWin.show();
currentWin.restore();
currentWin.focus();
};
return notification;
@ -131,4 +134,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
screenCaptureErrorString() {
return null;
}
requestNotificationPermission() : Promise {
return q('granted');
}
}

Loading…
Cancel
Save