aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/otr
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2014-01-27 11:32:50 +0200
committerhristoterezov <hristo@jitsi.org>2014-01-27 11:32:50 +0200
commita522c7f51a39b631ae2ffb23acded8d2f4d978f2 (patch)
treec3834954f7794d076b1fd7ad14772589e1eedfe8 /src/net/java/sip/communicator/plugin/otr
parent5c5fb51f2a841e2612cf9dd060f2fdfacb1c1ca4 (diff)
downloadjitsi-a522c7f51a39b631ae2ffb23acded8d2f4d978f2.zip
jitsi-a522c7f51a39b631ae2ffb23acded8d2f4d978f2.tar.gz
jitsi-a522c7f51a39b631ae2ffb23acded8d2f4d978f2.tar.bz2
Implements XEP-0280 (message carbons).
Diffstat (limited to 'src/net/java/sip/communicator/plugin/otr')
-rw-r--r--src/net/java/sip/communicator/plugin/otr/OtrTransformLayer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/otr/OtrTransformLayer.java b/src/net/java/sip/communicator/plugin/otr/OtrTransformLayer.java
index 8d99caa..f447de0 100644
--- a/src/net/java/sip/communicator/plugin/otr/OtrTransformLayer.java
+++ b/src/net/java/sip/communicator/plugin/otr/OtrTransformLayer.java
@@ -7,6 +7,7 @@
package net.java.sip.communicator.plugin.otr;
import net.java.otr4j.*;
+import net.java.otr4j.io.*;
import net.java.sip.communicator.plugin.otr.OtrContactManager.OtrContact;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.event.*;
@@ -110,6 +111,11 @@ public class OtrTransformLayer
new MessageDeliveredEvent(processedMessage, contact, evt
.getTimestamp());
+ if(processedMessage.getContent().contains(SerializationConstants.HEAD))
+ {
+ processedEvent.setMessageEncrypted(true);
+ }
+
return processedEvent;
}