From 8db5dee1c9c6798718543e28f6283d549651487c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 8 Mar 2021 17:24:27 +0100 Subject: [PATCH] Get groups logos --- assets/js/components/account/export/worker.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/js/components/account/export/worker.js b/assets/js/components/account/export/worker.js index aa9f9108..a8f396f7 100644 --- a/assets/js/components/account/export/worker.js +++ b/assets/js/components/account/export/worker.js @@ -222,6 +222,15 @@ ComunicWeb.components.account.export.worker = { } } + /** + * Parse group information + * + * @param {Group} g Information about the target group + */ + const parseGroupInfo = (g) => { + files.add(g.icon_url) + } + //Main account information files.add(data.advanced_info.accountImage); @@ -247,6 +256,9 @@ ComunicWeb.components.account.export.worker = { } } + // Groups + data.groups.forEach(parseGroupInfo) + //Related user information for (var key in data.users_info) { if (data.users_info.hasOwnProperty(key)) {