diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Conversation.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Conversation.java b/src/main/java/de/pixart/messenger/entities/Conversation.java index 8e8d2a28a..91257c6ff 100644 --- a/src/main/java/de/pixart/messenger/entities/Conversation.java +++ b/src/main/java/de/pixart/messenger/entities/Conversation.java @@ -758,13 +758,14 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl defaultEncryption = Message.ENCRYPTION_NONE; } int encryption = this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, defaultEncryption); - // don't ignore OTR - /*if (encryption == Message.ENCRYPTION_OTR) { + + if (encryption == Message.ENCRYPTION_OTR) { + return encryption; + } else if (encryption < 0) { return defaultEncryption; } else { return encryption; - }*/ - return encryption; + } } public void setNextEncryption(int encryption) { |