The problem you're mentioning (metadata leakage) can't be solved by cryptography alone. It's solved separately by specifying which relays can be responsible for your DMs. You will set up a preferred DM relay and only this relay would be used for all chats.