-
Notifications
You must be signed in to change notification settings - Fork 567
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
Notification fixups #1640
Notification fixups #1640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the issue. But I have doubt about order of notifications.
Iets say a widget has notifications in order A
B
C
. The widget doesn't handle A
or C
. When handling B
, widget submits a notification B'
.
The order for the parent will be A
C
B'
.
But A
B'
C
makes more sense to me.
hmm, thinking through the orderings: your idea makes sense if we knew that newly added notifications were always replacements for other notifications, but I'm not sure we do? If a widget submits two new notifications in response to one old one, should they both be inserted at the position of the old one? my gut feeling is that we shouldn't be relying on notification order; if two notifications cause interfering effects they should really be combined into a single notification? I think I've talked myself into the implementation that I did here; it feels just slightly simpler. 🤷 |
This was a small logic bug.
91758cd
to
6fa6656
Compare
Yes I feel the same :)
To me |
I don't think the limitation against this made any sense.
6fa6656
to
907993b
Compare
oh right, totally, that's much better. Thanks! |
Two small fixes:
Notification
are now allowedcc @maan2003 does this fix that issue for you?