Commit b016aa0f authored by Malcolm's avatar Malcolm Committed by JC Brand

FIX OEMO default setting in wrong place (#1476)

parent 8938245c
......@@ -84,9 +84,6 @@ converse.plugins.add('converse-omemo', {
initialize () {
const { _converse } = this.__super__;
_converse.api.settings.update({
'omemo_default': false,
});
this.debouncedRender = _.debounce(this.render, 50);
this.devicelist = _converse.devicelists.get(_converse.bare_jid);
this.devicelist.devices.on('change:bundle', this.debouncedRender, this);
......@@ -247,6 +244,10 @@ converse.plugins.add('converse-omemo', {
const { _converse } = this,
{ __ } = _converse;
_converse.api.settings.update({
'omemo_default': false,
});
_converse.api.promises.add(['OMEMOInitialized']);
_converse.NUM_PREKEYS = 100; // Set here so that tests can override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment