From 9dbf853dbb7262e99c88a5942f02b5f8df497941 Mon Sep 17 00:00:00 2001 From: maxgithubprofile <21055122+maxgithubprofile@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:31:30 +0300 Subject: [PATCH] fix: localstorage size (#1203) --- css/common.css | 1 + css/common.less | 1 + js/satolist.js | 29 ++++++++++++++++++++++++++++- package.json | 4 ++-- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/css/common.css b/css/common.css index 121f11815c..a05deb0074 100644 --- a/css/common.css +++ b/css/common.css @@ -896,6 +896,7 @@ } .share_common .sharepanel > div:nth-last-child(1) { margin-right: 0; + margin-left: auto; } .share_common .sharepanel > div .count { cursor: pointer; diff --git a/css/common.less b/css/common.less index 9144ca2919..79c431beff 100644 --- a/css/common.less +++ b/css/common.less @@ -1216,6 +1216,7 @@ &:nth-last-child(1){ margin-right: 0; + margin-left: auto; } diff --git a/js/satolist.js b/js/satolist.js index 53d2aafc43..485941ef10 100644 --- a/js/satolist.js +++ b/js/satolist.js @@ -9571,6 +9571,16 @@ Platform = function (app, listofnodes) { if (attr.exported) { var alias = new kits.alias[attr.type]() + if (attr.type == 'userInfo'){ + attr.exported.blocking = [] + attr.exported.subscribers = [] + attr.exported.subscribes = [] + + attr.exported.blocking_loaded = false + attr.exported.subscribers_loaded = false + attr.exported.subscribes_loaded = false + } + alias._import(attr.exported) imp[i] = alias @@ -9606,8 +9616,25 @@ Platform = function (app, listofnodes) { if (!attr) return; if (attr.export) { + + var exported = attr.export() + + if (attr.type == 'userInfo' && exported){ + exported.blocking = [] + exported.blocking_loaded = false + + exported.subscribers = [] + exported.subscribers_loaded = false + + exported.subscribes = [] + exported.subscribes_loaded = false + + exported.recomendedSubscribes = [] + + } + l[i] = { - exported: attr.export(), + exported: exported, type: attr.type } } diff --git a/package.json b/package.json index 4124d5741f..d12be4c8d4 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "project": "Bastyon", "version": "0.8.81", - "versionsuffix": "0", + "versionsuffix": "1", "cordovaversion": "1.8.81", - "cordovaversioncode": "180810", + "cordovaversioncode": "180811", "description": "Bastyon desktop application", "author": "Pocketnet Community ",