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:
@@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
||||
window.focus();
|
||||
notification.close();
|
||||
};
|
||||
|
||||
return notification;
|
||||
}
|
||||
|
||||
_getVersion(): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user