I am familiar with asymmetrical encryption, private/public keys...
I am wondering about the "new" trend coming from WhatsApp, Facebook, ... to have end to end message encryption. From my understanding, the device should generate the key pair locally, and send only the public key to the server/other users.
However, if my private key is stored only on my device, how can I still read/fetch all my previous conversations (supposedly encrypted) from the server when I use a new device since I don't have my private key anymore ? Or for example, if I use Facebook messenger on my browser, how can I decrypt previous messages when the private key should not be transferred ?