mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 05:24:44 +00:00
core, ui: chat relay addresses (#6191)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user