status-im / doubleratchet

The Double Ratchet Algorithm implementation in Go
MIT License
114 stars 14 forks source link

Don't delete key without explicit request #8

Closed cammellos closed 5 years ago

cammellos commented 5 years ago

We need to wait for messages to be confirmed before we can actually delete the message key, otherwise if for whatever reason is not processed we will be unable to receive it again.

This PR changes the behavior so that keys are not removed as soon as used.