Skip to content

Commit b8ca1f9

Browse files
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>
1 parent c107327 commit b8ca1f9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎src/vector/platform/WebPlatform.js‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ export default class WebPlatform extends VectorBasePlatform {
9191
global.focus();
9292
notification.close();
9393
};
94-
95-
// Chrome only dismisses notifications after 20s, which
96-
// is waaaaay too long
97-
global.setTimeout(function() {
98-
notification.close();
99-
}, 5 * 1000);
10094
}
10195

10296
_getVersion(): Promise<string> {

0 commit comments

Comments
 (0)