I thought most of these proposals were around doing device-local analysis and reporting (I suppose specific clients might not, but if they can mandate this at the device level, and make it default on iOS and Android, they're going to get almost all users.)
No reason an XMPP client wouldn't be forced to include this as well. Reminder that iMessage and Signal are encrypted communications but are surely a target of this sort of lawmaking.