Skip to content

Commit

Permalink
feat: add developer option to disable IMAP IDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 10, 2023
1 parent a9aba5e commit 9704e9e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 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
- mark webxdc app context as secure #3413
- Experimental: Related Chats
- Developer option to disable IMAP IDLE #4803

### Changed
- update deltachat-node and deltachat/jsonrpc-client to `v1.123.0`
Expand Down
6 changes: 6 additions & 0 deletions _locales/_untranslated_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"pref_donate": {
"message": "Donate"
},
"pref_disable_idle_title": {
"message": "Disable IMAP IDLE"
},
"pref_disable_idle_explain": {
"message": "Do not use IMAP IDLE extension even if the server supports it. Enabling this option will delay message retrieval, enable it only for testing."
},
"clear_chat": {
"message": "Clear Chat"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export default function SettingsImapFolderHandling({
key: 'only_fetch_mvbox',
description: tx('pref_only_fetch_mvbox_explain'),
})}
{renderDeltaSwitch2({
label: tx('pref_disable_idle_title'),
key: 'disable_idle',
description: tx('pref_disable_idle_explain'),
})}
</>
)
}
2 changes: 2 additions & 0 deletions src/renderer/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface SettingsStoreState {
webrtc_instance: string
download_limit: string
only_fetch_mvbox: string
disable_idle: string
'ui.lastchatid': string
}
desktopSettings: DesktopSettingsType
Expand All @@ -44,6 +45,7 @@ const settingsKeys: Array<keyof SettingsStoreState['settings']> = [
'webrtc_instance',
'download_limit',
'only_fetch_mvbox',
'disable_idle',
'ui.lastchatid',
]

Expand Down

0 comments on commit 9704e9e

Please sign in to comment.