Work on room switching on client
Fix a crash caused by not checking if groups exist