add possibility to add msg a chatwindow creation, fix bug receive msg when window not open