parent
516f6321ef
commit
61af01ff28
|
@ -1127,10 +1127,8 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
||||||
defaultEncryption = Message.ENCRYPTION_NONE;
|
defaultEncryption = Message.ENCRYPTION_NONE;
|
||||||
}
|
}
|
||||||
int encryption = this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, defaultEncryption);
|
int encryption = this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, defaultEncryption);
|
||||||
if (encryption < 0) {
|
if (encryption == Message.ENCRYPTION_OTR || encryption < 0) {
|
||||||
return defaultEncryption;
|
return defaultEncryption;
|
||||||
} else if (encryption == Message.ENCRYPTION_OTR) {
|
|
||||||
return encryption;
|
|
||||||
} else {
|
} else {
|
||||||
return encryption;
|
return encryption;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue