From 26adba9017466f08cf47b4b767e7d976093f522f Mon Sep 17 00:00:00 2001 From: manuroe Date: Fri, 20 Feb 2015 13:42:56 +0100 Subject: [PATCH] Console: Setting page: - Removed the access token - Renamed "Hide redations info" to "Hide redactions" --- .../matrixConsole/ViewController/SettingsViewController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrixConsole/matrixConsole/ViewController/SettingsViewController.m b/matrixConsole/matrixConsole/ViewController/SettingsViewController.m index 1c8f9090d..88c8b5030 100644 --- a/matrixConsole/matrixConsole/ViewController/SettingsViewController.m +++ b/matrixConsole/matrixConsole/ViewController/SettingsViewController.m @@ -45,7 +45,7 @@ #define SETTINGS_SECTION_ROOMS_CLEAR_CACHE_INDEX 6 #define SETTINGS_SECTION_ROOMS_INDEX_COUNT 7 -NSString* const kConfigurationFormatText = @"matrixConsole version: %@\r\nSDK version: %@\r\n%@\r\nHome server: %@\r\nIdentity server: %@\r\nUser ID: %@\r\nAccess token: %@"; +NSString* const kConfigurationFormatText = @"matrixConsole version: %@\r\nSDK version: %@\r\n%@\r\nHome server: %@\r\nIdentity server: %@\r\nUser ID: %@"; NSString* const kBuildFormatText = @"Build: %@\r\n"; NSString* const kCommandsDescriptionText = @"The following commands are available in the room chat:\r\n\r\n /nick : change your display name\r\n /me : send the action you are doing. /me will be replaced by your display name\r\n /join : join a room\r\n /kick []: kick the user\r\n /ban []: ban the user\r\n /unban : unban the user\r\n /op : set user power level\r\n /deop : reset user power level to the room default value"; @@ -808,7 +808,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl build = [NSString stringWithFormat:kBuildFormatText, build]; } MatrixSDKHandler *mxHandler = [MatrixSDKHandler sharedHandler]; - textView.text = [NSString stringWithFormat:kConfigurationFormatText, appVersion, MatrixSDKVersion, build, mxHandler.homeServerURL, mxHandler.identityServerURL, mxHandler.userId, mxHandler.accessToken]; + textView.text = [NSString stringWithFormat:kConfigurationFormatText, appVersion, MatrixSDKVersion, build, mxHandler.homeServerURL, mxHandler.identityServerURL, mxHandler.userId]; CGSize contentSize = [textView sizeThatFits:textView.frame.size]; return contentSize.height + 1; } else if (indexPath.section == SETTINGS_SECTION_COMMANDS_INDEX) { @@ -983,7 +983,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl roomsSettingCell.settingSwitch.on = [[AppSettings sharedSettings] displayAllEvents]; allEventsSwitch = roomsSettingCell.settingSwitch; } else if (indexPath.row == SETTINGS_SECTION_ROOMS_HIDE_REDACTED_INFO_INDEX) { - roomsSettingCell.settingLabel.text = @"Hide redacted information"; + roomsSettingCell.settingLabel.text = @"Hide redactions"; roomsSettingCell.settingSwitch.on = [[AppSettings sharedSettings] hideRedactedInformation]; redactedInfoSwitch = roomsSettingCell.settingSwitch; } else if (indexPath.row == SETTINGS_SECTION_ROOMS_HIDE_UNSUPPORTED_EVENTS_INDEX) { @@ -1009,7 +1009,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl if (build.length) { build = [NSString stringWithFormat:kBuildFormatText, build]; } - configurationCell.settingTextView.text = [NSString stringWithFormat:kConfigurationFormatText, appVersion, MatrixSDKVersion, build, mxHandler.homeServerURL, mxHandler.identityServerURL, mxHandler.userId, mxHandler.accessToken]; + configurationCell.settingTextView.text = [NSString stringWithFormat:kConfigurationFormatText, appVersion, MatrixSDKVersion, build, mxHandler.homeServerURL, mxHandler.identityServerURL, mxHandler.userId]; cell = configurationCell; } else if (indexPath.section == SETTINGS_SECTION_COMMANDS_INDEX) { SettingsCellWithTextView *commandsCell = [tableView dequeueReusableCellWithIdentifier:@"SettingsCellWithTextView" forIndexPath:indexPath];