Weird problem - chat windows close on their own

The chat, the whole conversation, I’m in occasionally disapears. It’s like I’ve clicked for a new chat window but the old one is gone.