Resumable attachment downloads

This commit is contained in:
Fedor Indutny 2024-08-19 13:05:35 -07:00 committed by GitHub
parent 2c92591b59
commit 38f532cdda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 401 additions and 89 deletions

View file

@ -104,6 +104,7 @@ export type IPCEventsCallbacksType = {
}>;
addCustomColor: (customColor: CustomColorType) => void;
addDarkOverlay: () => void;
cleanupDownloads: () => Promise<void>;
deleteAllData: () => Promise<void>;
deleteAllMyStories: () => Promise<void>;
editCustomColor: (colorId: string, customColor: CustomColorType) => void;
@ -533,6 +534,10 @@ export function createIPCEvents(
showKeyboardShortcuts: () =>
window.reduxActions.globalModals.showShortcutGuideModal(),
cleanupDownloads: async () => {
await ipcRenderer.invoke('cleanup-downloads');
},
deleteAllData: async () => {
renderClearingDataView();
},