From efb676deae9825db25e0ca9b8db3fc935bd68139 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 20 Feb 2025 17:15:07 +1100 Subject: [PATCH] fix: make sure we reupload user avatar on start, if needed --- ts/components/leftpane/ActionsPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/leftpane/ActionsPanel.tsx b/ts/components/leftpane/ActionsPanel.tsx index 4cfd49d34..7ef46bbab 100644 --- a/ts/components/leftpane/ActionsPanel.tsx +++ b/ts/components/leftpane/ActionsPanel.tsx @@ -1,5 +1,4 @@ import { ipcRenderer } from 'electron'; -import { debounce } from 'lodash'; import { useEffect, useRef, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; @@ -218,7 +217,8 @@ const doAppStartUp = async () => { void Data.cleanupOrphanedAttachments(); // TODOLATER make this a job of the JobRunner - debounce(triggerAvatarReUploadIfNeeded, 200); + // Note: do not make this a debounce call (as for some reason it doesn't work with promises) + void triggerAvatarReUploadIfNeeded(); /* Postpone a little bit of the polling of sogs messages to let the swarm messages come in first. */ global.setTimeout(() => {