Good motivation to build or support platforms where this can't even be a possibility, i.e. without phone number authentication or other identity revealing steps as part of authentication.
Even if a platform wanted, the laws will prohibit it by requiring user knowledge.
Privacy and anonymity are not the same thing.
You would need a warrant to extract the messages/identity directly from a person's computer as there is nothing otherwise to obtain.