vanitasvitae / Smack

A modular and portable open source XMPP client library written in Java for Android and Java (SE) VMs
https://igniterealtime.org/projects/smack/
Apache License 2.0
16 stars 3 forks source link

Don't try to decrypt MAM messages on a new device #7

Closed vanitasvitae closed 7 years ago

vanitasvitae commented 7 years ago

Could be done by eg. stopping to decrypt after 50 failures (like Conversations), or similar. The library should do this, because when the device created fresh keys, it will not be able to decrypt all messages in MAM, since none will be encrypted for the freshly generated key.

vanitasvitae commented 7 years ago

Maybe this should be done client side.