Fixed losing the connectivity and chat messages after changing the device orientation.