I realize you're probably using this discussion about the Synapse Admins chat as a springboard to talk about encryption in general, but for anybody unfamiliar with Matrix rooms: encryption is optional, and wasn't a factor in the issue.
The Synapse Admins channel discussed by GP and GGP is not encrypted at all, and its messages are publicly accessible to anyone[1]. This means that various detection scripts could be run on messages at any time by the server, including when receiving them, and before propagating them to their database.