We have known for years that 3Letter Agencies have been running Exit nodes on Tor to help them to identify wannabe "private" individuals... so why do you think a company like Chainalysis that are being paid millions to "identify" people behind transactions.... will not run their own Electrum nodes/Servers?
Chainalysis helps government agencies, cryptocurrency businesses, and financial institutions to track Blockchain traffic ....so this should not come as a surprise.
I wouldn't be surprised if normal operators are unknowingly assisting them with the spying.
If the user in question had used Tor, they would not be in this situation. Interestingly, also a VPN would have been sufficient in this scenario since Swiss law does not permit VPN providers to log IP addresses in the same way it allows email providers to log IP addresses.
So yeah, it's shit for the individual in question, but ProtonMail were only behaving in the way they said they would. But having said all that, I still wouldn't trust a third party provider not to decrypt your information (or at least try to) if they were forced to. Tor and PGP should be a must.
Problem with any service that you're going to use is that there is absolutely no way to ensure that they're not collecting logs. Any VPNs or service that promises "no logging" shouldn't mean that your privacy is guaranteed. The fact that it isn't that difficult to start logging, either with the knowledge of the provider or not is a dealbreaker. Always assume that you are getting logged, unless you can verify that your contents are being encrypted in a way that makes it difficult to do so.
Protonmail specifically stated that they are legally obliged to comply with certain requests, which are nothing out of the ordinary. If anything, I'm supportive of them doing so given that the requests are made on that basis that doesn't infringe on human rights. They've mounted several legal challenges against a few requests, IIRC.