Hid the chat window rather than close it in order to preserve sent
messages.
Merge pull request #2297 from ddobrev/xmppchat

Hid the chat window rather than close it in order to preserve sent messages.