Skip to content

Commit

Permalink
Corrections après merge trop rapide du Rebase v1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Buquet committed Sep 13, 2023
1 parent b30cf73 commit 70cf3be
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Riot/Modules/Secrets/Reset/SecretsResetViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ final class SecretsResetViewModel: SecretsResetViewModelType {
// TODO: Tchap: Support Reauthentication (SecretsReset)
// let setupCrossSigningRequest = self.crossSigningService.setupCrossSigningRequest()
// self.coordinatorDelegate?.secretsResetViewModel(self, needsToAuthenticateWith: setupCrossSigningRequest)
//
// self.update(viewState: .resetting)
}

private func authenticationCancelled() {
Expand Down
44 changes: 44 additions & 0 deletions Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ typedef NS_ENUM(NSUInteger, SECTION_TAG)
// Tchap : sign out moved to end of settings
// SECTION_TAG_SIGN_OUT = 0,
SECTION_TAG_USER_SETTINGS = 0,
// Tchap : no account web access
// SECTION_TAG_ACCOUNT,
SECTION_TAG_SENDING_MEDIA,
SECTION_TAG_LINKS,
SECTION_TAG_SECURITY,
Expand Down Expand Up @@ -431,6 +433,18 @@ - (void)updateSections
sectionUserSettings.headerTitle = [VectorL10n settingsUserSettings];
[tmpSections addObject:sectionUserSettings];


// Tchap : no account web access
// NSString *manageAccountURL = self.mainSession.homeserverWellknown.authentication.account;
// if (manageAccountURL)
// {
// Section *account = [Section sectionWithTag: SECTION_TAG_ACCOUNT];
// [account addRowWithTag:ACCOUNT_MANAGE_INDEX];
// account.headerTitle = [VectorL10n settingsManageAccountTitle];
// account.footerTitle = [VectorL10n settingsManageAccountDescription:manageAccountURL];
// [tmpSections addObject:account];
// }

if (BuildSettings.settingsScreenShowConfirmMediaSize)
{
Section *sectionMedia = [Section sectionWithTag:SECTION_TAG_SENDING_MEDIA];
Expand Down Expand Up @@ -2764,6 +2778,18 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell = labelAndSwitchCell;
}
}
// Tchap : no Account web access
// else if (section == SECTION_TAG_ACCOUNT)
// {
// switch (row)
// {
// case ACCOUNT_MANAGE_INDEX:
// cell = [self getDefaultTableViewCell:tableView];
// cell.textLabel.text = [VectorL10n settingsManageAccountAction];
// [cell vc_setAccessoryDisclosureIndicatorWithCurrentTheme];
// break;
// }
// }

return cell;
}
Expand Down Expand Up @@ -3124,6 +3150,15 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
break;
}
}
// Tchap : no account web access
// else if (section == SECTION_TAG_ACCOUNT)
// {
// switch(row) {
// case ACCOUNT_MANAGE_INDEX:
// [self onManageAccountTap];
// break;
// }
// }

[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
Expand Down Expand Up @@ -4123,6 +4158,15 @@ - (void)deleteKeyExportFile
}
}

// Tchap : no account web access
//- (void)onManageAccountTap
//{
// NSURL *url = [NSURL URLWithString: self.mainSession.homeserverWellknown.authentication.account];
// if (url) {
// [UIApplication.sharedApplication openURL:url options:@{} completionHandler:nil];
// }
//}

- (void)showThemePicker
{
__weak typeof(self) weakSelf = self;
Expand Down
1 change: 1 addition & 0 deletions changelog.d/871.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix after Rebase iOS 1.11.1 merged too quickly

0 comments on commit 70cf3be

Please sign in to comment.