about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-09-30 22:29:55 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-10-09 09:38:47 +0200
commit4d4c094b5f399858a28090b40db2eeb4064f6073 (patch)
treea82f15477d3e37f12469e59aeb59c3daa24b813e
parent7f5169c2e963a1c3a3508a0a368e5cf48ab832f7 (diff)
downloadprofani-tty-4d4c094b5f399858a28090b40db2eeb4064f6073.tar.gz
Enable _handle_ox_chat() payload/body decryption
This part of the code was waiting for xmpp_stanza_new_from_string() from
libstrophe 0.10.0.
-rw-r--r--src/xmpp/message.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 48ecf6d7..8e13039c 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -1368,8 +1368,6 @@ _handle_ox_chat(xmpp_stanza_t* const stanza, ProfMessage* message, gboolean is_m
     xmpp_stanza_t* ox = xmpp_stanza_get_child_by_name_and_ns(stanza, "openpgp", STANZA_NS_OPENPGP_0);
     message->plain = p_ox_gpg_decrypt(xmpp_stanza_get_text(ox));
 
-    // Implementation for libstrophe 0.10.
-    /*
     xmpp_stanza_t *x =  xmpp_stanza_new_from_string(connection_get_ctx(), message->plain);
     xmpp_stanza_t *p =  xmpp_stanza_get_child_by_name(x, "payload");
     xmpp_stanza_t *b =  xmpp_stanza_get_child_by_name(p, "body");
@@ -1378,7 +1376,6 @@ _handle_ox_chat(xmpp_stanza_t* const stanza, ProfMessage* message, gboolean is_m
         message->plain = xmpp_stanza_get_text(stanza);
     }
 	message->encrypted = xmpp_stanza_get_text(ox);
-    */
 
     if (message->plain == NULL) {
         message->plain = xmpp_stanza_get_text(stanza);