about summary refs log tree commit diff stats
path: root/src/omemo
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-28 23:30:28 +0100
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:23:45 +0200
commit562302846af07cb7b7bde894741840419a6b42dd (patch)
treee601adad478bb4d1dab4bf948b75025a74ef0af2 /src/omemo
parent904528b490e3e9e0d8ae0ecc8e8ec4126238c121 (diff)
downloadprofani-tty-562302846af07cb7b7bde894741840419a6b42dd.tar.gz
Handle bundle publication error on publish-options
We try to reconfigure node and publish again.
If it fails again then we give up.
Diffstat (limited to 'src/omemo')
-rw-r--r--src/omemo/omemo.c4
1 files changed, 2 insertions, 2 deletions
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 */