about summary refs log tree commit diff stats
path: root/src/xmpp/omemo.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-12-13 17:11:30 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-12-13 17:11:30 +0100
commitd4c9a98d7191fc586e9dd0b2d75c30a5dc543d55 (patch)
tree7e6eb5172518e625ac71633d8621c8daa2562297 /src/xmpp/omemo.c
parent818e93219e151c4b56631c83b72a06d177396c0f (diff)
downloadprofani-tty-d4c9a98d7191fc586e9dd0b2d75c30a5dc543d55.tar.gz
omemo: log when no pubsub
Closes https://github.com/profanity-im/profanity/issues/1621
Diffstat (limited to 'src/xmpp/omemo.c')
-rw-r--r--src/xmpp/omemo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c
index 66567e97..26cd6b37 100644
--- a/src/xmpp/omemo.c
+++ b/src/xmpp/omemo.c
@@ -72,6 +72,8 @@ omemo_devicelist_publish(GList* device_list)
 
     if (connection_supports(XMPP_FEATURE_PUBSUB_PUBLISH_OPTIONS)) {
         stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
+    } else {
+        log_debug("[OMEMO] Cannot publish devicelist: no PUBSUB feature announced");
     }
 
     iq_id_handler_add(xmpp_stanza_get_id(iq), _omemo_devicelist_publish_result, NULL, NULL);
@@ -148,6 +150,8 @@ omemo_bundle_publish(gboolean first)
                                          4, // 2 * number of key-value pairs
                                          "pubsub#persist_items", "true",
                                          "pubsub#access_model", "open");
+    } else {
+        log_debug("[OMEMO] Cannot publish bundle: no PUBSUB feature announced");
     }
 
     iq_id_handler_add(id, _omemo_bundle_publish_result, NULL, GINT_TO_POINTER(first));