diff options
author | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-28 19:03:52 +0100 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-28 19:03:52 +0100 |
commit | 5d32a0ec3d85295f2286fbbab650c852b13a437c (patch) | |
tree | 0242ac68df81c71bf12ce03b61c6afdb0a75d684 /plugins/omemo/src/stream_module.vala | |
parent | 7e156b3a7510eaad212dfe0c72dc8aba8bda0e57 (diff) | |
download | dino-5d32a0ec3d85295f2286fbbab650c852b13a437c.tar.gz dino-5d32a0ec3d85295f2286fbbab650c852b13a437c.zip |
Fix omemo not being available on first startup
Diffstat (limited to 'plugins/omemo/src/stream_module.vala')
-rw-r--r-- | plugins/omemo/src/stream_module.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/omemo/src/stream_module.vala b/plugins/omemo/src/stream_module.vala index d298db2b..25e3685f 100644 --- a/plugins/omemo/src/stream_module.vala +++ b/plugins/omemo/src/stream_module.vala @@ -33,6 +33,7 @@ public class StreamModule : XmppStreamModule { store_created(store); received_pipeline_listener = new ReceivedPipelineListener(store); stream.get_module(MessageModule.IDENTITY).received_pipeline.connect(received_pipeline_listener); + print("Adding filtered notification\n"); stream.get_module(Pubsub.Module.IDENTITY).add_filtered_notification(stream, NODE_DEVICELIST, (stream, jid, id, node) => on_devicelist(stream, jid, id, node)); } @@ -63,9 +64,8 @@ public class StreamModule : XmppStreamModule { if (Plugin.DEBUG) print(@"OMEMO: Not on device list, adding id\n"); node.put_node(new StanzaNode.build("device", NS_URI).put_attribute("id", store.local_registration_id.to_string())); stream.get_module(Pubsub.Module.IDENTITY).publish(stream, jid, NODE_DEVICELIST, NODE_DEVICELIST, id, node); - } else { - publish_bundles_if_needed(stream, jid); } + publish_bundles_if_needed(stream, jid); } ArrayList<int32> device_list = new ArrayList<int32>(); |