fix: make sure we reupload user avatar on start, if needed

pull/3281/head
Audric Ackermann 2 months ago
parent 7b4e392d2b
commit efb676deae
No known key found for this signature in database

@ -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(() => {

Loading…
Cancel
Save