updated the thread status manager to also reset the unread messages when archiving an active thread