chat settings fix and improvements

This fixes group chat settings and improves chat settings in general. Settings now automatically get upgraded when required.