stopped ignoring actions on Hash (they are lifetime incremetors)
This commit is contained in:
@@ -105,8 +105,7 @@ public abstract class NoUser implements Serializable {
|
|||||||
|
|
||||||
public final byte[] createFile(char[] password) {
|
public final byte[] createFile(char[] password) {
|
||||||
List<NoAction> tempActions = outgoing;
|
List<NoAction> tempActions = outgoing;
|
||||||
int tempActionCount = actions;
|
|
||||||
|
|
||||||
touchRandomizer();
|
touchRandomizer();
|
||||||
outgoing = new ArrayList<NoAction>();
|
outgoing = new ArrayList<NoAction>();
|
||||||
actions = 0;
|
actions = 0;
|
||||||
@@ -115,7 +114,6 @@ public abstract class NoUser implements Serializable {
|
|||||||
byte[] json = NoUtil.toBytes(gson.toJson(this));
|
byte[] json = NoUtil.toBytes(gson.toJson(this));
|
||||||
byte[] encrypted = NoUtil.encrypt(json, password);
|
byte[] encrypted = NoUtil.encrypt(json, password);
|
||||||
|
|
||||||
actions = tempActionCount;
|
|
||||||
outgoing = tempActions;
|
outgoing = tempActions;
|
||||||
return encrypted;
|
return encrypted;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user