From d4c9a98d7191fc586e9dd0b2d75c30a5dc543d55 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 13 Dec 2021 17:11:30 +0100 Subject: [PATCH] omemo: log when no pubsub Closes https://github.com/profanity-im/profanity/issues/1621 --- src/xmpp/omemo.c | 4 ++++ 1 file changed, 4 insertions(+) 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));