mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
webplatform: Fix notification closing
After a notification arrives, when the user focuses on element, the notification never goes away (unless directly interacted with), this was a bug. displayNotification was never returning the notification handle, which means that matrix-react-sdk later on had no way to .close it. Closes #16026 Signed-off-by: Alexandru M Stan <alex@hypertriangle.com>
This commit is contained in:
parent
625e001592
commit
35d1c0d980
@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
||||
window.focus();
|
||||
notification.close();
|
||||
};
|
||||
|
||||
return notification;
|
||||
}
|
||||
|
||||
_getVersion(): Promise<string> {
|
||||
|
Loading…
Reference in New Issue
Block a user