Migrate unread messages logic to recentsService.