diff --git a/Trust/Assets.xcassets/settings_telegram.imageset/Contents.json b/Trust/Assets.xcassets/settings_reddit.imageset/Contents.json similarity index 85% rename from Trust/Assets.xcassets/settings_telegram.imageset/Contents.json rename to Trust/Assets.xcassets/settings_reddit.imageset/Contents.json index 53425a4c4..e8ea65703 100644 --- a/Trust/Assets.xcassets/settings_telegram.imageset/Contents.json +++ b/Trust/Assets.xcassets/settings_reddit.imageset/Contents.json @@ -10,7 +10,7 @@ }, { "idiom" : "universal", - "filename" : "settings_telegram.png", + "filename" : "reddit_icon.png", "scale" : "3x" } ], diff --git a/Trust/Assets.xcassets/settings_reddit.imageset/reddit_icon.png b/Trust/Assets.xcassets/settings_reddit.imageset/reddit_icon.png new file mode 100644 index 000000000..e198270c7 Binary files /dev/null and b/Trust/Assets.xcassets/settings_reddit.imageset/reddit_icon.png differ diff --git a/Trust/Assets.xcassets/settings_telegram.imageset/settings_telegram.png b/Trust/Assets.xcassets/settings_telegram.imageset/settings_telegram.png deleted file mode 100644 index 3c58331da..000000000 Binary files a/Trust/Assets.xcassets/settings_telegram.imageset/settings_telegram.png and /dev/null differ diff --git a/Trust/Settings/Types/Constants.swift b/Trust/Settings/Types/Constants.swift index 5fb490ace..fcfc06193 100644 --- a/Trust/Settings/Types/Constants.swift +++ b/Trust/Settings/Types/Constants.swift @@ -12,7 +12,7 @@ public struct Constants { // social public static let website = "https://www.awallet.io/" public static let twitterUsername = "Alpha_wallet" - public static let telegramUsername = "trustwallet" + public static let redditGroupName = "r/AlphaWallet/" public static let facebookUsername = "AlphaWallet" // support diff --git a/Trust/Settings/Types/ServiceProvider.swift b/Trust/Settings/Types/ServiceProvider.swift index a04af290d..4f29680af 100644 --- a/Trust/Settings/Types/ServiceProvider.swift +++ b/Trust/Settings/Types/ServiceProvider.swift @@ -5,13 +5,13 @@ import UIKit enum URLServiceProvider { case twitter - case telegram + case reddit case facebook var title: String { switch self { case .twitter: return "Twitter" - case .telegram: return "Telegram Group" + case .reddit: return "Reddit" case .facebook: return "Facebook" } } @@ -20,8 +20,8 @@ enum URLServiceProvider { switch self { case .twitter: return URL(string: "twitter://user?screen_name=\(Constants.twitterUsername)")! - case .telegram: - return URL(string: "tg://resolve?domain=\(Constants.telegramUsername)") + case .reddit: + return URL(string: "reddit.com\(Constants.redditGroupName)") case .facebook: return URL(string: "fb://profile?id=\(Constants.facebookUsername)") } @@ -35,8 +35,8 @@ enum URLServiceProvider { switch self { case .twitter: return "https://twitter.com/\(Constants.twitterUsername)" - case .telegram: - return "https://telegram.me/\(Constants.telegramUsername)" + case .reddit: + return "https://reddit.com/\(Constants.redditGroupName)" case .facebook: return "https://www.facebook.com/\(Constants.facebookUsername)" } @@ -45,7 +45,7 @@ enum URLServiceProvider { var image: UIImage? { switch self { case .twitter: return R.image.settings_twitter() - case .telegram: return R.image.settings_telegram() + case .reddit: return R.image.settings_reddit() case .facebook: return R.image.settings_facebook() } } diff --git a/Trust/Settings/ViewControllers/SettingsViewController.swift b/Trust/Settings/ViewControllers/SettingsViewController.swift index 34b1bc0de..431ccc967 100644 --- a/Trust/Settings/ViewControllers/SettingsViewController.swift +++ b/Trust/Settings/ViewControllers/SettingsViewController.swift @@ -195,7 +195,7 @@ class SettingsViewController: FormViewController { +++ Section(NSLocalizedString("settings.community.label.title", value: "Community", comment: "")) <<< linkProvider(type: .twitter) - <<< linkProvider(type: .telegram) + <<< linkProvider(type: .reddit) <<< linkProvider(type: .facebook) +++ Section(NSLocalizedString("settings.support.label.title", value: "Support", comment: ""))