mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Don't immediately remove notifications from notification trays
Let the notifications go into browser/OS notification trays so users can click on them from there if they miss the initial notification. Modern Chrome uses OS notifications so the user is in control of the the notification with the OS. This also aligns with the Electron platform version. Signed-off-by: Matthew Noorenberghe <github@matthew.noorenberghe.com>
This commit is contained in:
parent
c10732736c
commit
b8ca1f920e
@ -91,12 +91,6 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
global.focus();
|
global.focus();
|
||||||
notification.close();
|
notification.close();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Chrome only dismisses notifications after 20s, which
|
|
||||||
// is waaaaay too long
|
|
||||||
global.setTimeout(function() {
|
|
||||||
notification.close();
|
|
||||||
}, 5 * 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_getVersion(): Promise<string> {
|
_getVersion(): Promise<string> {
|
||||||
|
Loading…
Reference in New Issue
Block a user