Skip to content

Fixed the case where a notification was purged too soon - #49202

Merged
Benjamin Pasero (bpasero) merged 1 commit into
microsoft:masterfrom
ihalip:fix-49044
May 9, 2018
Merged

Benjamin Pasero (bpasero) merged 1 commit into
microsoft:masterfrom
ihalip:fix-49044

Conversation

@ihalip

@ihalip Ilie Halip (ihalip) commented May 4, 2018 •

Copy link
Copy Markdown
Contributor

ProgressService2 creates a notification and marks it as infinite (progressService2.ts:218). But the hideAfterTimeout() function (notificationToasts:186) removes it after a timeout based on the notification severity (info, warning, error).

This adds a check inside the hideAfterTimeout() function. When the infinite state flag is set to true, the notification is not removed, and the hideAfterTimeout() function doesn't get called again. Adding the check before calling hideAfterTimeout() the first time doesn't work correctly, because the infinite flag is set after the notification handle is created.

@ihalip

Ilie Halip (ihalip) commented May 4, 2018 •

Copy link
Copy Markdown
Contributor Author

Benjamin Pasero (@bpasero)

This should fix #49044.

@bpasero

Copy link
Copy Markdown
Contributor

Thanks 👍

@bpasero
Benjamin Pasero (bpasero) merged commit d8f47ba into microsoft:master May 9, 2018
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants