AgI modified covalent organic frameworks for effective bacterial disinfection and organic pollutant degradation under visible light irradiation.