bug fixes for forcing encryption
This commit is contained in:
parent
5cb11396f6
commit
a6f0f0cb6e
|
@ -363,8 +363,13 @@ public class Conversation extends AbstractEntity {
|
||||||
return latest;
|
return latest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.nextMessageEncryption == Message.ENCRYPTION_NONE && force
|
||||||
|
&& getMode() == MODE_SINGLE) {
|
||||||
|
return Message.ENCRYPTION_OTR;
|
||||||
|
} else {
|
||||||
return this.nextMessageEncryption;
|
return this.nextMessageEncryption;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setNextEncryption(int encryption) {
|
public void setNextEncryption(int encryption) {
|
||||||
this.nextMessageEncryption = encryption;
|
this.nextMessageEncryption = encryption;
|
||||||
|
|
Loading…
Reference in New Issue