diff options
author | hristoterezov <hristo@jitsi.org> | 2014-01-27 11:32:50 +0200 |
---|---|---|
committer | hristoterezov <hristo@jitsi.org> | 2014-01-27 11:32:50 +0200 |
commit | a522c7f51a39b631ae2ffb23acded8d2f4d978f2 (patch) | |
tree | c3834954f7794d076b1fd7ad14772589e1eedfe8 /src/net/java/sip/communicator/plugin/otr | |
parent | 5c5fb51f2a841e2612cf9dd060f2fdfacb1c1ca4 (diff) | |
download | jitsi-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.java | 6 |
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; } |