about summary refs log tree commit diff stats
path: root/src/omemo/omemo.c
diff options
context:
space:
mode:
authorDebXWoody <stefan@debxwoody.de>2021-06-01 06:39:32 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-06-01 09:44:48 +0200
commit41913a0aea082c953952fe31d81c72a101d2cca9 (patch)
treeae493971f07003eaf2def053dc882f7933b67dad /src/omemo/omemo.c
parent956fd547c1beaeb1254b2899f1f3576f5511128a (diff)
downloadprofani-tty-41913a0aea082c953952fe31d81c72a101d2cca9.tar.gz
OMEMO - Unable to publish own device list
If we are not able to publish our own device list, we just ignored it.
This commit will show at least an error message and informs the user that this
device is currently not in the list of devices.

See Issue: #1538

Next task will be to handle the <precondition-not-met/> conflict properly.
Diffstat (limited to 'src/omemo/omemo.c')
-rw-r--r--src/omemo/omemo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index b6c7585d..192d3d2a 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -1335,14 +1335,15 @@ _handle_own_device_list(const char* const jid, GList* device_list)
 {
     // We didn't find the own device id -> publish
     if (!g_list_find(device_list, GINT_TO_POINTER(omemo_ctx.device_id))) {
-        log_debug("[OMEMO] No device id for our device? publish device list...");
+        cons_show("Could not find own OMEMO device ID. Going to publish own device ID: %d", GINT_TO_POINTER(omemo_ctx.device_id));
+        log_debug("[OMEMO] No device ID for our device. Publishing device list");
         device_list = g_list_copy(device_list);
         device_list = g_list_append(device_list, GINT_TO_POINTER(omemo_ctx.device_id));
         g_hash_table_insert(omemo_ctx.device_list, strdup(jid), device_list);
         omemo_devicelist_publish(device_list);
     }
 
-    log_debug("[OMEMO] Request OMEMO Bundles for my devices...");
+    log_debug("[OMEMO] Request OMEMO Bundles for our devices");
     GList* device_id;
     for (device_id = device_list; device_id != NULL; device_id = device_id->next) {
         omemo_bundle_request(jid, GPOINTER_TO_INT(device_id->data), omemo_start_device_session_handle_bundle, free, strdup(jid));