Skip to content

Commit 2bc6f32

Browse files
committed
Review remarks
1 parent be9706e commit 2bc6f32

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

Nio/Generated/Strings.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,10 @@ internal enum L10n {
312312
internal static let data = L10n.tr("Localizable", "settings-identity-server.data")
313313
/// Data & Privacy
314314
internal static let dataPrivacy = L10n.tr("Localizable", "settings-identity-server.data-privacy")
315-
/// By using the identity server, your email address and phone number will be sent to the identity server and will be linked to your Matrix ID (@example.nio.chat).
316-
internal static let dataText = L10n.tr("Localizable", "settings-identity-server.data-text")
315+
/// By using the identity server, your email address and phone number will be sent to the identity server and will be linked to your Matrix ID (%@).
316+
internal static func dataText(_ p1: Any) -> String {
317+
return L10n.tr("Localizable", "settings-identity-server.data-text", String(describing: p1))
318+
}
317319
/// Learn More
318320
internal static let learnMore = L10n.tr("Localizable", "settings-identity-server.learn-more")
319321
/// Match
@@ -322,7 +324,7 @@ internal enum L10n {
322324
internal static let matchText = L10n.tr("Localizable", "settings-identity-server.match-text")
323325
/// (Optional) Contact Sync
324326
internal static let optionalContactSync = L10n.tr("Localizable", "settings-identity-server.optional-contact-sync")
325-
/// When activating contact syncronization, Nio will periodically send the email addresses and phone numbers of all your contacts to the identity server to see if that contact has a linked Matrix ID. This contact information is never stored or shared by Nio.
327+
/// When activating contact syncronization, Nio will periodically send the email addresses and phone numbers of all your contacts to the identity server to see if that contact has a linked Matrix ID. This contact information is never stored or shared with other parties by Nio.
326328
internal static let optionalContactSyncText = L10n.tr("Localizable", "settings-identity-server.optional-contact-sync-text")
327329
/// Please go to Settings and turn on the permissions.
328330
internal static let permissionAlertBody = L10n.tr("Localizable", "settings-identity-server.permission-alert-body")

Nio/NewConversation/NewConversationView.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ private struct NewConversationView: View {
4141
let store: AccountStore?
4242

4343
@State private var users = [""]
44-
@State private var usersVerified: [UserStatus] = [UserStatus.unkown]
44+
@State private var usersVerified: [UserStatus] = [UserStatus.unknown]
4545

4646
@State private var numCalls: Int = 0
4747

4848
@State private var isRetrieving = false
49-
49+
5050
#if !os(macOS)
5151
@State private var editMode = EditMode.inactive
5252
#endif
@@ -238,7 +238,7 @@ private struct NewConversationView: View {
238238

239239
private func addUser() {
240240
withAnimation {
241-
usersVerified.append(UserStatus.unkown)
241+
usersVerified.append(UserStatus.unknown)
242242
users.append("")
243243
}
244244
}

Nio/Settings/IdentityServerSettings.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,26 @@ struct InformationDetailView: View {
6161
.font(.headline)
6262
.foregroundColor(.primary)
6363
.accessibility(addTraits: .isHeader)
64+
.textCase(.none)
6465

6566
Text(subTitle)
6667
.foregroundColor(.secondary)
6768
.fixedSize(horizontal: false, vertical: true)
69+
.textCase(.none)
6870
}
6971
}
7072
.padding(.top)
7173
}
7274
}
7375

7476
struct InformationContainerView: View {
77+
@EnvironmentObject private var store: AccountStore
78+
7579
var body: some View {
7680
VStack(alignment: .leading) {
7781
InformationDetailView(
7882
title: L10n.SettingsIdentityServer.data,
79-
subTitle: L10n.SettingsIdentityServer.dataText,
83+
subTitle: L10n.SettingsIdentityServer.dataText(store.session?.myUserId ?? "@username:server.org"),
8084
imageName: "arrow.up.doc"
8185
)
8286

Nio/Supporting Files/en.lproj/Localizable.strings

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@
9090
"settings-identity-server.learn-more" = "Learn More";
9191
"settings-identity-server.data-privacy" = "Data & Privacy";
9292
"settings-identity-server.data" = "Data";
93-
"settings-identity-server.data-text" = "By using the identity server, your email address and phone number will be sent to the identity server and will be linked to your Matrix ID (@example.nio.chat).";
93+
"settings-identity-server.data-text" = "By using the identity server, your email address and phone number will be sent to the identity server and will be linked to your Matrix ID (%@).";
9494
"settings-identity-server.match" = "Match";
9595
"settings-identity-server.match-text" = "Any user can retrieve your Matrix ID by entering your email address or phone number, but cannot find your email address or phone number by entering your Matrix ID.";
9696
"settings-identity-server.closed-federation" = "Closed Federation";
9797
"settings-identity-server.closed-federation-text" = "At the moment, the identity servers are in a closed federation configuration. This means that there are only two identity servers (matrix.org, vector.im) and all data uploaded to one is copied to the other.";
9898
"settings-identity-server.optional-contact-sync" = "(Optional) Contact Sync";
99-
"settings-identity-server.optional-contact-sync-text" = "When activating contact syncronization, Nio will periodically send the email addresses and phone numbers of all your contacts to the identity server to see if that contact has a linked Matrix ID. This contact information is never stored or shared by Nio.";
99+
"settings-identity-server.optional-contact-sync-text" = "When activating contact syncronization, Nio will periodically send the email addresses and phone numbers of all your contacts to the identity server to see if that contact has a linked Matrix ID. This contact information is never stored or shared with other parties by Nio.";
100100
"new-conversation.title-chat" = "New Chat";
101101
"new-conversation.title-room" = "New Room";
102102
"new-conversation.username-placeholder" = "Matrix ID";

0 commit comments

Comments
 (0)