state implementation for one to one chat