mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
Revert "ui: comment smp proxy ui (#4204)"
This reverts commit a0d6ae15ab
.
This commit is contained in:
parent
c59eb06b8a
commit
4e5ee981e5
2 changed files with 34 additions and 34 deletions
|
@ -82,29 +82,29 @@ struct NetworkAndServers: View {
|
||||||
Text("Using .onion hosts requires compatible VPN provider.")
|
Text("Using .onion hosts requires compatible VPN provider.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Section {
|
Section {
|
||||||
// Picker("Private routing", selection: $proxyMode) {
|
Picker("Private routing", selection: $proxyMode) {
|
||||||
// ForEach(SMPProxyMode.values, id: \.self) { Text($0.text) }
|
ForEach(SMPProxyMode.values, id: \.self) { Text($0.text) }
|
||||||
// }
|
}
|
||||||
// .frame(height: 36)
|
.frame(height: 36)
|
||||||
//
|
|
||||||
// Picker("Allow downgrade", selection: $proxyFallback) {
|
Picker("Allow downgrade", selection: $proxyFallback) {
|
||||||
// ForEach(SMPProxyFallback.values, id: \.self) { Text($0.text) }
|
ForEach(SMPProxyFallback.values, id: \.self) { Text($0.text) }
|
||||||
// }
|
}
|
||||||
// .disabled(proxyMode == .never)
|
.disabled(proxyMode == .never)
|
||||||
// .frame(height: 36)
|
.frame(height: 36)
|
||||||
//
|
|
||||||
// Toggle("Show message status", isOn: $showSentViaProxy)
|
Toggle("Show message status", isOn: $showSentViaProxy)
|
||||||
// } header: {
|
} header: {
|
||||||
// Text("Private message routing")
|
Text("Private message routing")
|
||||||
// } footer: {
|
} footer: {
|
||||||
// VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
// Text("To protect your IP address, private routing uses your SMP servers to deliver messages.")
|
Text("To protect your IP address, private routing uses your SMP servers to deliver messages.")
|
||||||
// if showSentViaProxy {
|
if showSentViaProxy {
|
||||||
// Text("Show → on messages sent via private routing.")
|
Text("Show → on messages sent via private routing.")
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
Section("Calls") {
|
Section("Calls") {
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
|
|
|
@ -250,17 +250,17 @@ fun NetworkAndServersView() {
|
||||||
Divider(Modifier.padding(start = DEFAULT_PADDING_HALF, top = 24.dp, end = DEFAULT_PADDING_HALF, bottom = 30.dp))
|
Divider(Modifier.padding(start = DEFAULT_PADDING_HALF, top = 24.dp, end = DEFAULT_PADDING_HALF, bottom = 30.dp))
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (currentRemoteHost == null) {
|
if (currentRemoteHost == null) {
|
||||||
// SectionView(generalGetString(MR.strings.settings_section_title_private_message_routing)) {
|
SectionView(generalGetString(MR.strings.settings_section_title_private_message_routing)) {
|
||||||
// SMPProxyModePicker(smpProxyMode, showModal, updateSMPProxyMode)
|
SMPProxyModePicker(smpProxyMode, showModal, updateSMPProxyMode)
|
||||||
// SMPProxyFallbackPicker(smpProxyFallback, showModal, updateSMPProxyFallback, enabled = remember { mutableStateOf(smpProxyMode.value != SMPProxyMode.Never) })
|
SMPProxyFallbackPicker(smpProxyFallback, showModal, updateSMPProxyFallback, enabled = remember { mutableStateOf(smpProxyMode.value != SMPProxyMode.Never) })
|
||||||
// SettingsPreferenceItem(painterResource(MR.images.ic_arrow_forward), stringResource(MR.strings.private_routing_show_message_status), chatModel.controller.appPrefs.showSentViaProxy)
|
SettingsPreferenceItem(painterResource(MR.images.ic_arrow_forward), stringResource(MR.strings.private_routing_show_message_status), chatModel.controller.appPrefs.showSentViaProxy)
|
||||||
// }
|
}
|
||||||
// SectionCustomFooter {
|
SectionCustomFooter {
|
||||||
// Text(stringResource(MR.strings.private_routing_explanation))
|
Text(stringResource(MR.strings.private_routing_explanation))
|
||||||
// }
|
}
|
||||||
// Divider(Modifier.padding(start = DEFAULT_PADDING_HALF, top = 32.dp, end = DEFAULT_PADDING_HALF, bottom = 30.dp))
|
Divider(Modifier.padding(start = DEFAULT_PADDING_HALF, top = 32.dp, end = DEFAULT_PADDING_HALF, bottom = 30.dp))
|
||||||
// }
|
}
|
||||||
|
|
||||||
SectionView(generalGetString(MR.strings.settings_section_title_calls)) {
|
SectionView(generalGetString(MR.strings.settings_section_title_calls)) {
|
||||||
SettingsActionItem(painterResource(MR.images.ic_electrical_services), stringResource(MR.strings.webrtc_ice_servers), { ModalManager.start.showModal { RTCServersView(m) } })
|
SettingsActionItem(painterResource(MR.images.ic_electrical_services), stringResource(MR.strings.webrtc_ice_servers), { ModalManager.start.showModal { RTCServersView(m) } })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue