Skip to content

Commit 53623fa

Browse files
SeptiasSimon-Laux
authored andcommitted
add config option (chatmail/core#5607)
1 parent 9e71bf5 commit 53623fa

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

_locales/en.xml

+2
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,8 @@
765765
<string name="pref_edit_profile">Edit Profile</string>
766766
<string name="disable_imap_idle">Disable IMAP IDLE</string>
767767
<string name="disable_imap_idle_explain">Do not use IMAP IDLE extension even if the server supports it. Enabling this option will delay message retrieval, enable it only for testing.</string>
768+
<string name="enable_realtime">Enable Realtime APIs</string>
769+
<string name="enable_realtime_explain"> Enable Webxdc realtime APIs which create direct connection between devices and leak IP addresses to each other.</string>
768770
<string name="send_stats_to_devs">Send statistics to Delta Chat\'s developers</string>
769771

770772

src/renderer/components/Settings/ExperimentalFeatures.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ export function ExperimentalFeatures({ settingsStore }: Props) {
102102
// 853b584251a5dacf60ebc616f7fb10edffb5c5e5/src/main/index.ts#L12-L21
103103
description='Careful: opening developer tools on a malicious webxdc app could lead to the app getting access to the Internet'
104104
/>
105+
<CoreSettingsSwitch
106+
label={tx('enable_realtime')}
107+
settingsKey='enable_realtime'
108+
description={tx('enable_realtime_explain')}
109+
/>
105110
</>
106111
)
107112
}

src/renderer/stores/settings.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface SettingsStoreState {
2727
disable_idle: string
2828
media_quality: string
2929
is_chatmail: '0' | '1'
30+
enable_realtime: string
3031
}
3132
desktopSettings: DesktopSettingsType
3233
rc: RC_Config

0 commit comments

Comments
 (0)