Do not use <private> for PGP-encrypted outgoing messages
authorHolger Weiß <holger@zedat.fu-berlin.de>
Sun, 04 Oct 2015 21:30:41 +0200
changeset 2192 cb53950fb1de
parent 2191 025cd2af5fbb
child 2193 18fa5ecb1ef4
Do not use <private> for PGP-encrypted outgoing messages
mcabber/mcabber/xmpp.c
--- a/mcabber/mcabber/xmpp.c	Sun Oct 04 20:38:17 2015 +0200
+++ b/mcabber/mcabber/xmpp.c	Sun Oct 04 21:30:41 2015 +0200
@@ -422,7 +422,7 @@
 
   // We probably don't want Carbons for encrypted messages, since the other
   // resources won't be able to decrypt them.
-  if (enc && carbons_enabled())
+  if (otr_msg && carbons_enabled())
     lm_message_node_add_child(x->node, "private", NS_CARBONS_2);
 
   // XEP-0184: Message Receipts