feat: disable compression

This commit is contained in:
thecodrr
2021-02-18 18:23:19 +05:00
parent 60a7397ef5
commit 22d2950f24
2 changed files with 3 additions and 11 deletions

View File

@@ -24,10 +24,6 @@ class Collector {
};
}
shouldCompress(itemType) {
return itemType === "tiny";
}
async collect(lastSyncedTimestamp, force) {
this._lastSyncedTimestamp = lastSyncedTimestamp;
this.key = await this._db.user.getEncryptionKey();
@@ -44,11 +40,7 @@ class Collector {
_serialize(item) {
if (!item) return;
return this._db.context.encrypt(
this.key,
JSON.stringify(item),
this.shouldCompress(item.type)
);
return this._db.context.encrypt(this.key, JSON.stringify(item));
}
_collect(array) {

View File

@@ -27,8 +27,8 @@ export default class Storage {
return this.storage.getAllKeys();
}
encrypt(password, data, compress) {
return this.storage.encrypt(password, data, compress);
encrypt(password, data) {
return this.storage.encrypt(password, data);
}
decrypt(password, cipher) {