Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
MXKDeviceView: Make clear that device names are publicly readable
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Aug 26, 2019
1 parent bc1ca65 commit 9e8ad4b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Changes in MatrixKit in 0.11.0 (2019-08-)
==========================================

Improvements:
* Upgrade MatrixSDK version ([v0.14.0](https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.14.0)).
* MXKDeviceView: Make clear that device names are publicly readable (vector-im/riot-ios/issues/2662).

Changes in MatrixKit in 0.10.2 (2019-08-08)
==========================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@

// Devices
"device_details_title" = "Device information\n";
"device_details_name" = "Name\n";
"device_details_identifier" = "Device ID\n";
"device_details_name" = "Public Name\n";
"device_details_identifier" = "ID\n";
"device_details_last_seen" = "Last seen\n";
"device_details_last_seen_format" = "%@ @ %@\n";
"device_details_rename_prompt_message" = "Device name:";
"device_details_rename_prompt_title" = "Device Name";
"device_details_rename_prompt_message" = "A device's public name is visible to people you communicate with";
"device_details_delete_prompt_title" = "Authentication";
"device_details_delete_prompt_message" = "This operation requires additional authentication.\nTo continue, please enter your password.";

Expand All @@ -171,8 +172,8 @@
"room_event_encryption_info_event_none" = "none";
"room_event_encryption_info_device" = "\nSender device information\n";
"room_event_encryption_info_device_unknown" = "unknown device\n";
"room_event_encryption_info_device_name" = "Name\n";
"room_event_encryption_info_device_id" = "Device ID\n";
"room_event_encryption_info_device_name" = "Public Name\n";
"room_event_encryption_info_device_id" = "ID\n";
"room_event_encryption_info_device_verification" = "Verification\n";
"room_event_encryption_info_device_fingerprint" = "Ed25519 fingerprint\n";
"room_event_encryption_info_device_verified" = "Verified";
Expand Down
5 changes: 3 additions & 2 deletions MatrixKit/Views/DeviceView/MXKDeviceView.m
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ - (void)renameDevice
[currentAlert dismissViewControllerAnimated:NO completion:nil];
__weak typeof(self) weakSelf = self;

currentAlert = [UIAlertController alertControllerWithTitle:nil message:[NSBundle mxk_localizedStringForKey:@"device_details_rename_prompt_message"] preferredStyle:UIAlertControllerStyleAlert];

currentAlert = [UIAlertController alertControllerWithTitle:[NSBundle mxk_localizedStringForKey:@"device_details_rename_prompt_title"]
message:[NSBundle mxk_localizedStringForKey:@"device_details_rename_prompt_message"] preferredStyle:UIAlertControllerStyleAlert];

[currentAlert addTextFieldWithConfigurationHandler:^(UITextField *textField) {

textField.secureTextEntry = NO;
Expand Down

0 comments on commit 9e8ad4b

Please sign in to comment.