conversejs / converse.js

Web-based XMPP/Jabber chat client written in JavaScript
http://conversejs.org
Mozilla Public License 2.0
3.09k stars 776 forks source link

Export and import function for logs and OMEMO keys #1191

Open allo- opened 6 years ago

allo- commented 6 years ago

It would be nice to have an option to export and import chatlogs and encryption keys, so there is a backup when the storage of the browser is cleared.

For chatlogs MAM may be sufficient, but it only works if the OMEMO key of the old session can be imported. A log export e.g. as zip with .txt files would be nice, because MAM can have quotas in storage space and retention time.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/63176721-export-and-import-function-for-logs-and-omemo-keys?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github).
Mic92 commented 6 years ago

Can somebody tell me how I can access _converse from the browser console? Then I could hack together something myself:

https://github.com/conversejs/converse.js/blob/79b8ed71776da4c6e8b0a38995914a7129536f41/src/converse-omemo.js#L250

jcbrand commented 6 years ago

@Mic92 The _converse API object is protected and only available to whitelisted plugins. If you want to use it you'll have to write a plugin.

https://conversejs.org/docs/html/plugin_development.html