Every client and rely has access to your IP address during event transfer. They decide to store it or not.
You probably haven’t been here in earlier days when Enigma nostr related messenger had a backdoor and leaked the private keys of a lot of users ! Until one of the devs figured it out and called them publicly to fix the issue where they refused. You dumb fuck!