mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Merge pull request #7518 from vector-im/dbkr/better_fix_for_windows_crashes
Don't set tags on notifications
This commit is contained in:
commit
c1dfbd6993
@ -143,7 +143,6 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||
{
|
||||
body: msg,
|
||||
icon: avatarUrl,
|
||||
tag: 'vector',
|
||||
silent: true, // we play our own sounds
|
||||
},
|
||||
);
|
||||
@ -169,11 +168,6 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||
}
|
||||
|
||||
clearNotification(notif: Notification) {
|
||||
// This crashes on windows under certain circumstances: can't find any
|
||||
// workaround other than not closing notifs.
|
||||
// https://github.com/electron/electron/issues/15251
|
||||
// https://github.com/vector-im/riot-web/issues/7512
|
||||
if (window.process.platform === 'win32') return;
|
||||
notif.close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user