Private chat working, main and outside main