FE sometimes shows unread mentions/notifications that don’t exist #364
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This has been a long-standing Misskey bug. Sometimes I get the “unread stuff” dot on the Mentions and Notifications menu entries, but nothing unread actually exists. The only way to clear this is to mark all notes/notifications as read in the FE settings.
I wonder if deleted notes/reactions/renotes never get removed from this. Never tried to test/reproduce this…
What may definitely happen is when deleting notes we do not check if there were any outstanding notifications for that note, and thus will not send an event on the streaming API. That would fix itself on a page reload.
There are foreign key relations with
ON DELETE CASCADE
in place betweennote_unread
,notification
andnote
. So when a Note is deleted, Notifications referencing it and "unread markers" will be deleted as well.I do not think there is cascade-deletion in effect though.