Moves SQL to full IPC

This commit is contained in:
Josh Perez 2023-05-04 13:59:02 -04:00
parent 34baa0fa2f
commit be60b3d225
11 changed files with 110 additions and 334 deletions

View file

@ -102,7 +102,6 @@ export type IPCEventsCallbacksType = {
authorizeArtCreator: (data: AuthorizeArtCreatorDataType) => void;
deleteAllData: () => Promise<void>;
deleteAllMyStories: () => Promise<void>;
closeDB: () => Promise<void>;
editCustomColor: (colorId: string, customColor: CustomColorType) => void;
getConversationsWithCustomColor: (x: string) => Array<ConversationType>;
installStickerPack: (packId: string, key: string) => Promise<void>;
@ -477,15 +476,9 @@ export function createIPCEvents(
window.reduxActions.globalModals.showShortcutGuideModal(),
deleteAllData: async () => {
await window.Signal.Data.goBackToMainProcess();
renderClearingDataView();
},
closeDB: async () => {
await window.Signal.Data.goBackToMainProcess();
},
showStickerPack: (packId, key) => {
// We can get these events even if the user has never linked this instance.
if (!Registration.everDone()) {