Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cancel notification if last notification in group #1347

Merged
merged 1 commit into from Feb 4, 2021

Conversation

chriss158
Copy link
Contributor

Fixes #1346

Summary

If a notification is the last one in a group, which is generated by the system and not the user, the notification cannot be canceled.
This is because the group which should be canceled has no groupId.
To fix this issue, we just cancel the last notification in the group. That way, the system removes the group by itself.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!!

@JBassett JBassett merged commit 59fdae2 into home-assistant:master Feb 4, 2021
chriss158 added a commit to chriss158/android that referenced this pull request Feb 4, 2021
@chriss158 chriss158 deleted the fix-cancel-notification branch February 4, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 notifications can cause clearing sticky/persistant to fail
4 participants