deltachat / deltachat-desktop

Email-based instant messaging for Desktop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notifications are sometimes not removed from notification center [needs step to reproduce]

r10s opened this issue · comments

notifications show up in the notification center of mac, however, they are not removed when the corresponding chat is opened and the belonging messages are no longer "fresh".

eg. on android/ios, we dismiss all notifications belonging to a chat once the chat is opened, i assume sth. like that would be nice for desktop as well.

eg. the following image shows some profiles where none of them have a new message - but the notification center (rights) shows lots of messages, some of them days old:

Screenshot 2024-06-13 at 00 19 55

there was a similar issue at #2199, tbh, not sure when it stopped working again

eg. on android/ios, we dismiss all notifications belonging to a chat once the chat is opened, i assume sth. like that would be nice for desktop as well.

this is what it does for me, just tested it again.

I can not reproduce this, could those notifications be remaining from a previous session (like be from that bug: #2438, I'm not sure if we can solve that bug maybe we should just remove all notifications if you close deltachat?)

Can't reproduce this in Catalina too. Works as expected...

i had similar many messages as in the image above just now.

clearing all these messages (i think, i tried that before, but well, not 100% sure), i can confirm, on explicit tries notificaitions are removed as expected.

also, quitting the app seem to remove all notification.

so, let's close this issue, maybe it was the case that in older versions notifications were not removed on exit and then got orphaned.

if i again see lots of stale notifications, i know that i removed them all by re-reading this message :)

ftr, having stale notifications again, however, i cannot say how to reproduce the issue yet.

i suspect it is somehow related to multiple devices

i have the issue again, btw.

i suspect, it is related to multi-device somehow, but i did not find a way to reproduce it somehow. it is just that after some time not watching, the notification center is flooded as shown in the image above.

So you haven't restarted it in between?

So you haven't restarted it in between?

exiting the app does remove all notifications for me, that works.

so, yes, i probably have not restarted for some time.

in general, the app is running for hours, sometimes days, including suspend times where i use a second device. i suspect that is where things somehow go wrong. but as said, i cannot really say more than that it happens :)

Have you started and stopped from command line or killed the app otherwise? then it might not have a chance to clear old notifications?

no, not that i was aware of

See if reproduction steps in #3982 work for you