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>pull/16028/head
parent
625e001592
commit
35d1c0d980
|
@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
||||||
window.focus();
|
window.focus();
|
||||||
notification.close();
|
notification.close();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return notification;
|
||||||
}
|
}
|
||||||
|
|
||||||
_getVersion(): Promise<string> {
|
_getVersion(): Promise<string> {
|
||||||
|
|
Loading…
Reference in New Issue