Commit 3af1ffc3 authored by JC Brand's avatar JC Brand

omemo: announce bundle info after publishing new device

parent 32847e86
......@@ -70,7 +70,7 @@ async function initializedOMEMO (_converse) {
}
fdescribe("The OMEMO module", function() {
describe("The OMEMO module", function() {
it("adds methods for encrypting and decrypting messages via AES GCM",
mock.initConverse(
......
......@@ -1328,11 +1328,14 @@ converse.plugins.add('converse-omemo', {
}
devicelist.devices.trigger('remove');
}
// Generate new bundle and publish
// Generate new device bundle and publish
// https://xmpp.org/extensions/attic/xep-0384-0.3.0.html#usecases-announcing
await _converse.omemo_store.generateBundle();
await devicelist.publishDevices();
const device = devicelist.devices.get(_converse.omemo_store.get('device_id'));
return generateFingerprint(device);
const fp = generateFingerprint(device);
await _converse.omemo_store.publishBundle();
return fp;
}
}
}
......
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