removed dataKey where it's not necessary anymore (use of CLS instead)

This commit is contained in:
azivner
2018-03-31 08:53:52 -04:00
parent 5d203b2278
commit 05676f3459
12 changed files with 78 additions and 105 deletions

View File

@@ -11,7 +11,7 @@ class Note extends Entity {
super(repository, row);
if (this.isProtected) {
protected_session.decryptNote(this.dataKey, this);
protected_session.decryptNote(this);
}
if (this.isJson()) {
@@ -129,7 +129,7 @@ class Note extends Entity {
this.content = JSON.stringify(this.jsonContent, null, '\t');
if (this.isProtected) {
protected_session.encryptNote(this.dataKey, this);
protected_session.encryptNote(this);
}
}
}