Honor existing mam user configuration
Steps to reproduce:
- Server default policy is set to false (no archiving).
- User enables archiving with an ad-hoc command to his needs.
- Converse overwrites the user configured policy with it's defaults (false).
The following workaround is possible:
- Let the default be false
- Configure the jids you want to archive manually.
Software used:
- Server: prosody 0.10 hg:d5b416070f70
- Modules: mod_mam, mod_mam_adoc, mod_storage_xmlarchive
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Can't the current MAM settings be fetched on connect? Assuming that whenever MAM is enabled on the server, some preference will already be set, converse.js should only change those preferences if explicitly requested by the user.
I think, this is still a big issue which needs attention. I, as a XMPP server administrator, don't want to decide for all users, if they want their private conversations to be stored on the server or not. It should be really up to them, just honoring the existing decision should be enough, an interface for configuration is not needed in converse.js imho.
an interface for configuration is not needed in converse.js imho.
If you assume Converse.js users will also use another client that provides such an interface, yes. I'm not sure how safe that assumption is.
any status update about this issue?
Thanks for providing a solution for this! Will test in the next days!
Thanks, but it was @throwaway42 who provided a pull request (which I merged and updated a bit).