From 562302846af07cb7b7bde894741840419a6b42dd Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Thu, 28 Mar 2019 23:30:28 +0100 Subject: Handle bundle publication error on publish-options We try to reconfigure node and publish again. If it fails again then we give up. --- src/omemo/omemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/omemo') diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c index 9e46058e..580416f8 100644 --- a/src/omemo/omemo.c +++ b/src/omemo/omemo.c @@ -314,7 +314,7 @@ omemo_generate_short_term_crypto_materials(ProfAccount *account) g_hash_table_insert(omemo_ctx.device_list_handler, strdup(account->jid), handle_own_device_list); omemo_devicelist_request(account->jid); - omemo_bundle_publish(); + omemo_bundle_publish(true); } void @@ -791,7 +791,7 @@ omemo_on_message_recv(const char *const from_jid, uint32_t sid, SIGNAL_UNREF(new_pre_key); SIGNAL_UNREF(message); SIGNAL_UNREF(ec_pair); - omemo_bundle_publish(); + omemo_bundle_publish(true); if (res == 0) { /* Start a new session */ -- cgit 1.4.1-2-gfad0