Fix synchronization of seen/unseen status of msgs

Fixes #2715