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
Alexandru M Stan 2 years ago
parent 625e001592
commit 35d1c0d980
  1. 2
      src/vector/platform/WebPlatform.ts

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

Loading…
Cancel
Save