forked from mirror/monocles_chat_clean
work around -1 in next encryption
This commit is contained in:
parent
0827cca054
commit
53c7136b02
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||
}
|
||||
|
||||
public int getNextEncryption() {
|
||||
return this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, Message.ENCRYPTION_NONE);
|
||||
return Math.max(this.getIntAttribute(ATTRIBUTE_NEXT_ENCRYPTION, Message.ENCRYPTION_NONE), Message.ENCRYPTION_NONE);
|
||||
}
|
||||
|
||||
public void setNextEncryption(int encryption) {
|
||||
|
|
Loading…
Add table
Reference in a new issue