changeset 2155:a053629321ed

Carbons: Fix check in changeset 2ce6dd6861ea
author Mikael Berthe <mikael@lilotux.net>
date Sat, 04 Oct 2014 18:49:52 +0200
parents ccaa4f4c9151
children a54c084af4d6
files mcabber/mcabber/xmpp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Sat Oct 04 18:38:15 2014 +0200
+++ b/mcabber/mcabber/xmpp.c	Sat Oct 04 18:49:52 2014 +0200
@@ -419,7 +419,7 @@
 
   // We probably don't want Carbons for encrypted messages, since the other
   // resources won't be able to decrypt them.
-  if (carbons_enabled())
+  if (enc && carbons_enabled())
     lm_message_node_add_child(x->node, "private", NS_CARBONS_2);
 
   // XEP-0184: Message Receipts