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:
Alexandru M Stan 2020-12-24 02:01:40 -08:00
parent 625e001592
commit 35d1c0d980

View File

@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
window.focus();
notification.close();
};
return notification;
}
_getVersion(): Promise<string> {