Skip to content

Commit ed96f59

Browse files
committed
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 <amstan@chromium.org>
1 parent 625e001 commit ed96f59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vector/platform/WebPlatform.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
8989
window.focus();
9090
notification.close();
9191
};
92+
93+
return notification;
9294
}
9395

9496
_getVersion(): Promise<string> {

0 commit comments

Comments
 (0)