Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wire-ios/Configuration/url.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@
"howToAddConversationToCustomFolder": "https://support.wire.com/hc/en-us/articles/360002855817-Add-a-conversation-to-a-custom-folder",
"howToChangeEmail": "https://support.wire.com/hc/en-us/articles/203762940-Change-your-email-address",
"howToDeleteAccount": "https://support.wire.com/hc/en-us/articles/207555795-Delete-a-personal-account",
"learnMoreAboutChannels": "https://support.wire.com/hc/en-us/articles/25732551379101-Create-a-channel"
"learnMoreAboutChannels": "https://support.wire.com/hc/en-us/articles/25732551379101-Create-a-channel",
"learnMoreAboutE2EE": "https://support.wire.com/hc/articles/10898523878173"

}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ struct WireURLs: Codable {
/// Link to an article about channels.
let learnMoreAboutChannels: URL

/// Link to an article about end to end encryption.
let learnMoreAboutE2EE: URL

static var shared: WireURLs = {
do {
return try WireURLs(forResource: "url", withExtension: "json")
Expand Down Expand Up @@ -144,6 +147,7 @@ struct WireURLs: Codable {
case howToChangeEmail
case howToDeleteAccount
case learnMoreAboutChannels
case learnMoreAboutE2EE
}

enum WireURLsError: Error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class GuestAccountWarningView: UIView {
stackView.addArrangedSubview(messageLabel)

let linkText = L10n.Localizable.Conversation.ConnectionView.Welcome.learnMore
let linkUrl = URL(string: "https://support.wire.com/hc/articles/10898523878173")!
let linkUrl = WireURLs.shared.learnMoreAboutE2EE

let linkAttributes: [NSAttributedString.Key: AnyObject] = [
.font: UIFont.mediumSemiboldFont,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class ConversationWelcomeSystemMessageCellDescription: ConversationMessage
}

let linkLabel = L10n.Localizable.Conversation.ConnectionView.Welcome.learnMore
let linkUrl = URL(string: "https://support.wire.com/hc/articles/10898523878173")!
let linkUrl = WireURLs.shared.learnMoreAboutE2EE

let titleAttributes: [NSAttributedString.Key: AnyObject] = [
.font: FontSpec(.header, .semibold).font!,
Expand Down
Loading