Commit 34541d64 authored by JC Brand's avatar JC Brand

Add check before resetting

parent 3ecb906d
...@@ -1040,7 +1040,9 @@ ...@@ -1040,7 +1040,9 @@
} }
_converse.api.listen.on('afterTearDown', () => { _converse.api.listen.on('afterTearDown', () => {
if (_converse.devicelists) {
_converse.devicelists.reset(); _converse.devicelists.reset();
}
delete _converse.omemo_store; delete _converse.omemo_store;
}); });
_converse.api.listen.on('connected', registerPEPPushHandler); _converse.api.listen.on('connected', registerPEPPushHandler);
......
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