Commit 42f84da4 authored by Richard Bayerle's avatar Richard Bayerle
Browse files

Update to new libomemo, strips XHTML-IM and multiple bodies.

Fixes #43.
parent fcccfad1
Subproject commit 00b5f90a996c18f87a887a9602173921244c9f40
Subproject commit 2d210efed1d8b7bb8cb5f7b7c263e19b09d5ba19
......@@ -1515,7 +1515,7 @@ static void lurch_message_encrypt_im(PurpleConnection * gc_p, xmlnode ** msg_sta
goto cleanup;
}
tempxml = xmlnode_to_str(*msg_stanza_pp, &len);
ret_val = omemo_message_prepare_encryption(tempxml, own_id, &crypto, &msg_p);
ret_val = omemo_message_prepare_encryption(tempxml, own_id, &crypto, OMEMO_STRIP_ALL, &msg_p);
if (ret_val) {
err_msg_dbg = g_strdup_printf("failed to construct omemo message");
goto cleanup;
......@@ -1646,7 +1646,7 @@ static void lurch_message_encrypt_groupchat(PurpleConnection * gc_p, xmlnode **
goto cleanup;
}
tempxml = xmlnode_to_str(*msg_stanza_pp, &len);
ret_val = omemo_message_prepare_encryption(tempxml, own_id, &crypto, &om_msg_p);
ret_val = omemo_message_prepare_encryption(tempxml, own_id, &crypto, OMEMO_STRIP_ALL, &om_msg_p);
if (ret_val) {
err_msg_dbg = g_strdup_printf("failed to construct omemo message");
goto cleanup;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment