Bug/3662 signal unread when flag changes

This include the previous commit too, but the merge will be clean (so no need to rebase).