At the moment, every message is encrypted using this . I plan to store this encrypted message in the database. Now this encrypted message can only be decrypted by the recipient, i.e. the sender cannot decrypt his message by taking it from the database. Therefore, I can not keep a history of messages. Those. if the user quits the chat, he will not see his own messages the next time he logs on.
And here's the question: is it possible to decrypt your own message? Or do you need to store your messages on some local storage?