From bbe578343e5544aea2b57aebcadb37a1b31c8ba2 Mon Sep 17 00:00:00 2001 From: Samuel Hand Date: Mon, 28 May 2018 01:01:37 +0100 Subject: [PATCH] remove bundle requests so session creation doesn't fail --- plugins/omemo/src/stream_module.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/omemo/src/stream_module.vala b/plugins/omemo/src/stream_module.vala index 0148a7f2..6e6772ca 100644 --- a/plugins/omemo/src/stream_module.vala +++ b/plugins/omemo/src/stream_module.vala @@ -197,6 +197,7 @@ public class StreamModule : XmppStreamModule { if (active_bundle_requests.add(jid.bare_jid.to_string() + @":$device_id")) { if (Plugin.DEBUG) print(@"OMEMO: Asking for bundle from $(jid.bare_jid.to_string()):$device_id\n"); stream.get_module(Pubsub.Module.IDENTITY).request(stream, jid.bare_jid, @"$NODE_BUNDLES:$device_id", (stream, jid, id, node) => { + stream.get_module(IDENTITY).active_bundle_requests.remove(jid.bare_jid.to_string() + @":$device_id"); bundle_fetched(jid, device_id, new Bundle(node)); }); }