about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-25 19:19:18 +0140
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commitbc16ba1669b5a8fb0d2b449b2f2be8149025d70b (patch)
tree0991fcd2d1d55e7f1463cba49dea22086d8881b1
parent678bff9169c81ed20c38698e132d7c8c6118763b (diff)
downloadprofani-tty-bc16ba1669b5a8fb0d2b449b2f2be8149025d70b.tar.gz
Temporarly disable check for publish-options support
-rw-r--r--src/xmpp/omemo.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c
index 4fcca699..98509ff1 100644
--- a/src/xmpp/omemo.c
+++ b/src/xmpp/omemo.c
@@ -23,9 +23,7 @@ omemo_devicelist_publish(GList *device_list)
     xmpp_ctx_t * const ctx = connection_get_ctx();
     xmpp_stanza_t *iq = stanza_create_omemo_devicelist_publish(ctx, device_list);
 
-    if (connection_supports(XMPP_FEATURE_PUBSUB_PUBLISH_OPTIONS)) {
-        stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
-    }
+    stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
 
     iq_send_stanza(iq);
     xmpp_stanza_release(iq);
@@ -72,9 +70,7 @@ omemo_bundle_publish(void)
     g_list_free(lengths);
     g_list_free(ids);
 
-    if (connection_supports(XMPP_FEATURE_PUBSUB_PUBLISH_OPTIONS)) {
-        stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
-    }
+    stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
 
     iq_send_stanza(iq);
     xmpp_stanza_release(iq);