1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00

omemo: log when no pubsub

Closes https://github.com/profanity-im/profanity/issues/1621
This commit is contained in:
Michael Vetter 2021-12-13 17:11:30 +01:00
parent 818e93219e
commit d4c9a98d71

View File

@ -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));