Skip to content

Commit

Permalink
Update electron from 30.3.1 to 32.0.2
Browse files Browse the repository at this point in the history
closes #4111
  • Loading branch information
Simon-Laux committed Sep 10, 2024
1 parent ee6e6f9 commit 9b59645
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

### Changed
- Update electron from `30.3.1` to `32.0.2`
- dev: transformed repo into monorepo
- dev: switched from `npm` to `pnpm`
- dev: esbuild bundling for electron main process js (+minification for releases)
Expand Down
2 changes: 1 addition & 1 deletion packages/target-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"chai": "^5.1.1",
"chokidar": "^3.6.0",
"debounce": "^1.2.0",
"electron": "^30.3.1",
"electron": "^32.0.2",
"electron-builder": "^24.13.3",
"esbuild": "^0.19.8",
"mocha": "^10.7.0",
Expand Down
8 changes: 6 additions & 2 deletions packages/target-electron/src/deltachat/webxdc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ If you think that's a bug and you need that permission, then please open an issu
const s = sessionFromAccountId(accountId)
const appURL = `webxdc://${webxdcId}.webxdc`
s.clearStorageData({ origin: appURL })
s.clearData({ origins: [appURL] })
s.clearCodeCaches({ urls: [appURL] })
s.clearCache()
}
Expand Down Expand Up @@ -784,8 +785,10 @@ function removeLastBounds(
)
}

ipcMain.handle('webxdc.clearWebxdcDOMStorage', (_, accountId: number) => {
sessionFromAccountId(accountId).clearStorageData()
ipcMain.handle('webxdc.clearWebxdcDOMStorage', async (_, accountId: number) => {
const session = sessionFromAccountId(accountId)
await session.clearStorageData()
await session.clearData()
})

ipcMain.handle('webxdc.getWebxdcDiskUsage', async (_, accountId: number) => {
Expand Down Expand Up @@ -879,6 +882,7 @@ ipcMain.handle('delete_webxdc_account_data', async (_ev, accountId: number) => {
cache: false,
})
await s.clearStorageData()
await s.clearData()

// mark the folder for deletion on next startup
if (s.storagePath) {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b59645

Please sign in to comment.