core, ui: chat relay addresses (#6191)

This commit is contained in:
Evgeny
2025-08-15 17:37:10 +01:00
committed by GitHub
parent 16ed5bcb57
commit fb8d8ec7c3
7 changed files with 11 additions and 4 deletions
+2
View File
@@ -4666,6 +4666,7 @@ public enum SimplexLinkType: String, Decodable, Hashable {
case invitation
case group
case channel
case relay
public var description: String {
switch self {
@@ -4673,6 +4674,7 @@ public enum SimplexLinkType: String, Decodable, Hashable {
case .invitation: return NSLocalizedString("SimpleX one-time invitation", comment: "simplex link type")
case .group: return NSLocalizedString("SimpleX group link", comment: "simplex link type")
case .channel: return NSLocalizedString("SimpleX channel link", comment: "simplex link type")
case .relay: return NSLocalizedString("SimpleX relay link", comment: "simplex link type")
}
}
}
@@ -4437,13 +4437,15 @@ enum class SimplexLinkType(val linkType: String) {
contact("contact"),
invitation("invitation"),
group("group"),
channel("channel");
channel("channel"),
relay("relay");
val description: String get() = generalGetString(when (this) {
contact -> MR.strings.simplex_link_contact
invitation -> MR.strings.simplex_link_invitation
group -> MR.strings.simplex_link_group
channel -> MR.strings.simplex_link_channel
relay -> MR.strings.simplex_link_relay
})
}
@@ -98,6 +98,7 @@
<string name="simplex_link_invitation">SimpleX one-time invitation</string>
<string name="simplex_link_group">SimpleX group link</string>
<string name="simplex_link_channel">SimpleX channel link</string>
<string name="simplex_link_relay">SimpleX relay link</string>
<string name="simplex_link_connection">via %1$s</string>
<string name="simplex_link_mode">SimpleX links</string>
<string name="simplex_link_mode_description">Description</string>