1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

ox: have metadata node open

Should have been done alogn with e9f218cdf6.

Like this people who are not in the roster can get our public key and
write messages to use.
This commit is contained in:
Michael Vetter 2022-05-04 13:46:02 +02:00
parent 0500e209a6
commit 54b57326b8

View File

@ -277,6 +277,12 @@ _ox_metadata_node__public_key(const char* const fingerprint)
xmpp_stanza_add_child(pubsub, publish); xmpp_stanza_add_child(pubsub, publish);
xmpp_stanza_add_child(iq, pubsub); xmpp_stanza_add_child(iq, pubsub);
if (connection_supports(XMPP_FEATURE_PUBSUB_PUBLISH_OPTIONS)) {
stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
} else {
log_debug("[OX] Cannot publish public key: no PUBSUB feature announced");
}
iq_send_stanza(iq); iq_send_stanza(iq);
xmpp_stanza_release(iq); xmpp_stanza_release(iq);
} }