logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 732733f115a863408a339e164ff88f1022c46101
parent 72e238ceb34304cb023a01a84c3f453aadaa775c
Author: Henry Jameson <me@hjkos.com>
Date:   Thu, 11 Aug 2022 02:23:58 +0300

add a todo for future

Diffstat:

Msrc/modules/serverSideStorage.js3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/modules/serverSideStorage.js b/src/modules/serverSideStorage.js @@ -110,6 +110,9 @@ export const _mergeFlags = (recent, stale, allFlagKeys) => { } const _mergeJournal = (a, b) => uniqWith( + // TODO use groupBy to group by path, then trim them depending on operations, + // i.e. if field got removed in the end - no need to sort it beforehand, if field + // got re-added no need to remove it and add it etc. [ ...(Array.isArray(a) ? a : []), ...(Array.isArray(b) ? b : [])