Fixed bug where posting chat messages closed current classroom