mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #2994 from vector-im/dbkr/carlos22_notif_fixes
Fixes to electron desktop notifs
This commit is contained in:
commit
686a3c693a
@ -97,7 +97,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
room_id: room.roomId
|
room_id: room.roomId
|
||||||
});
|
});
|
||||||
global.focus();
|
global.focus();
|
||||||
electron.remote.getCurrentWindow().restore();
|
const currentWin = electron.remote.getCurrentWindow();
|
||||||
|
currentWin.show();
|
||||||
|
currentWin.restore();
|
||||||
|
currentWin.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
return notification;
|
return notification;
|
||||||
@ -131,4 +134,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
screenCaptureErrorString() {
|
screenCaptureErrorString() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
requestNotificationPermission() : Promise {
|
||||||
|
return q('granted');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user