mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
work around -1 in next encryption
This commit is contained in:
parent
48afeb571b
commit
ec63900ef3
@ -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…
Reference in New Issue
Block a user