Skip to content

Commit

Permalink
webplatform: Fix notification closing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
amstan committed Dec 24, 2020
1 parent 625e001 commit 35d1c0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vector/platform/WebPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export default class WebPlatform extends VectorBasePlatform {
window.focus();
notification.close();
};

return notification;
}

_getVersion(): Promise<string> {
Expand Down

0 comments on commit 35d1c0d

Please sign in to comment.