From 61af01ff283282bab2f1c767d2017d779a3cf905 Mon Sep 17 00:00:00 2001 From: kosyak Date: Sun, 14 Jul 2024 12:23:01 +0200 Subject: [PATCH] Revert "otr fixes" This reverts commit a136138daa9a3a39ffa06d309f6c666ef28ece5b. --- .../java/eu/siacs/conversations/entities/Conversation.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index b2380560a..da60498d3 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1127,10 +1127,8 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl defaultEncryption = Message.ENCRYPTION_NONE; } int encryption = this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, defaultEncryption); - if (encryption < 0) { + if (encryption == Message.ENCRYPTION_OTR || encryption < 0) { return defaultEncryption; - } else if (encryption == Message.ENCRYPTION_OTR) { - return encryption; } else { return encryption; }