From 353a90788c9d3cc339a4e5d7dd4680c62f5e18bc Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 31 Aug 2021 11:41:28 +0200 Subject: [PATCH] Make `IndexedDB` the default persistent store --- CHANGES.md | 9 +++++++++ dev.html | 7 +++---- src/headless/shared/settings.js | 2 +- src/shared/tests/mock.js | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5838f26af..a528f8537 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -46,6 +46,15 @@ ### Breaking Changes +The default persistent store, set via the [persistent_store](https://conversejs.org/docs/html/configuration.html#persistent-store), +is now IndexedDB. This main advantage of using IndexedDB is that it doesn't +have a fixed size limit. We don't provide a tool to migrate data from +localStorage to IndexedDB. For almost all data this is not a problem since +the data can be fetched again from the XMPP server. However, +decrypted OMEMO messages cannot be fetched again from the server, since the +double ratchet makes it impossible to again decrypt them. This means your +decrypted OMEMO history will be lost in the transition. + The [afterMessageBodyTransformed](https://conversejs.org/docs/html/api/-_converse.html#event:afterMessageBodyTransformed) and [beforeMessageBodyTransformed](https://conversejs.org/docs/html/api/-_converse.html#event:beforeMessageBodyTransformed) events now has a different signatures. When leaving a MUC, the message history is deleted. This means that decrypted OMEMO messages are gone and cannot be recovered on that device. See [muc_clear_messages_on_leave](https://conversejs.org/docs/html/configuration.html#muc-clear-messages-on-leave). diff --git a/dev.html b/dev.html index b22678c72..1dcc16fc6 100644 --- a/dev.html +++ b/dev.html @@ -16,7 +16,7 @@ - +