added message servers

This commit is contained in:
Diogo
2024-11-20 14:42:33 +00:00
parent d79517c738
commit 400316bfdf
2 changed files with 17 additions and 0 deletions
@@ -191,6 +191,22 @@ fun OperatorViewLayout(
)
}
}
if (userServers.value[operatorIndex].smpServers.any { !it.preset && !it.deleted }) {
SectionDividerSpaced()
SectionView(generalGetString(MR.strings.operator_added_message_servers).uppercase()) {
userServers.value[operatorIndex].smpServers.forEach { server ->
if (server.deleted || server.preset) return@forEach
SectionItemView {
ProtocolServerView(
srv = server,
serverProtocol = ServerProtocol.SMP,
duplicateHosts = duplicateHosts
)
}
}
}
}
}
}
}
@@ -1703,6 +1703,7 @@
<string name="operator_use_for_messages">Use for messages</string>
<string name="operator_use_for_messages_receiving">For receiving</string>
<string name="operator_use_for_messages_private_routing">For private routing</string>
<string name="operator_added_message_servers">Added message servers</string>
<!-- AdvancedNetworkSettings.kt -->
<string name="network_option_tcp_connection">TCP connection</string>