It doesn’t make the encryption irrelevant nor is it undermined in any way.
The person on the other end that you’re choosing to communicate with is the weak link. It has nothing to do with encryption at all. They could do the exact same thing whether encrypted or not. E2EE is simply not a factor here at all