mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Suppress warnings
This commit is contained in:
parent
a52f27f77f
commit
1976fc1906
2 changed files with 13 additions and 12 deletions
|
@ -1090,22 +1090,22 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
|||
self->actualDirectoryVisibility = directoryVisibility;
|
||||
|
||||
// Update the value of the displayed toggle button (if any)
|
||||
if (directoryVisibilitySwitch)
|
||||
if (self->directoryVisibilitySwitch)
|
||||
{
|
||||
// Check a potential user's change before the end of the request
|
||||
MXRoomDirectoryVisibility modifiedDirectoryVisibility = updatedItemsDict[kRoomSettingsDirectoryKey];
|
||||
MXRoomDirectoryVisibility modifiedDirectoryVisibility = self->updatedItemsDict[kRoomSettingsDirectoryKey];
|
||||
if (modifiedDirectoryVisibility)
|
||||
{
|
||||
if ([modifiedDirectoryVisibility isEqualToString:directoryVisibility])
|
||||
{
|
||||
// The requested change corresponds to the actual settings
|
||||
[updatedItemsDict removeObjectForKey:kRoomSettingsDirectoryKey];
|
||||
[self->updatedItemsDict removeObjectForKey:kRoomSettingsDirectoryKey];
|
||||
|
||||
[self getNavigationItem].rightBarButtonItem.enabled = (updatedItemsDict.count != 0);
|
||||
[self getNavigationItem].rightBarButtonItem.enabled = (self->updatedItemsDict.count != 0);
|
||||
}
|
||||
}
|
||||
|
||||
directoryVisibilitySwitch.on = ([directoryVisibility isEqualToString:kMXRoomDirectoryVisibilityPublic]);
|
||||
self->directoryVisibilitySwitch.on = ([directoryVisibility isEqualToString:kMXRoomDirectoryVisibilityPublic]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -164,7 +164,8 @@ SecureBackupSetupCoordinatorBridgePresenterDelegate,
|
|||
SignOutAlertPresenterDelegate,
|
||||
SingleImagePickerPresenterDelegate,
|
||||
SettingsDiscoveryTableViewSectionDelegate, SettingsDiscoveryViewModelCoordinatorDelegate,
|
||||
SettingsIdentityServerCoordinatorBridgePresenterDelegate>
|
||||
SettingsIdentityServerCoordinatorBridgePresenterDelegate,
|
||||
TableViewSectionsDelegate>
|
||||
{
|
||||
// Current alert (if any).
|
||||
UIAlertController *currentAlert;
|
||||
|
@ -809,7 +810,7 @@ SettingsIdentityServerCoordinatorBridgePresenterDelegate>
|
|||
[self.tableView beginUpdates];
|
||||
|
||||
// Refresh the corresponding table view cell with animation
|
||||
NSIndexPath *addEmailIndexPath = [_tableViewSections exactIndexPathForRowTag:USER_SETTINGS_ADD_EMAIL_INDEX
|
||||
NSIndexPath *addEmailIndexPath = [self->_tableViewSections exactIndexPathForRowTag:USER_SETTINGS_ADD_EMAIL_INDEX
|
||||
sectionTag:SECTION_TAG_USER_SETTINGS];
|
||||
if (addEmailIndexPath)
|
||||
{
|
||||
|
@ -840,7 +841,7 @@ SettingsIdentityServerCoordinatorBridgePresenterDelegate>
|
|||
[self.tableView beginUpdates];
|
||||
|
||||
// Refresh the corresponding table view cell with animation
|
||||
NSIndexPath *addPhoneIndexPath = [_tableViewSections exactIndexPathForRowTag:USER_SETTINGS_ADD_PHONENUMBER_INDEX
|
||||
NSIndexPath *addPhoneIndexPath = [self->_tableViewSections exactIndexPathForRowTag:USER_SETTINGS_ADD_PHONENUMBER_INDEX
|
||||
sectionTag:SECTION_TAG_USER_SETTINGS];
|
||||
if (addPhoneIndexPath)
|
||||
{
|
||||
|
@ -3715,7 +3716,7 @@ SettingsIdentityServerCoordinatorBridgePresenterDelegate>
|
|||
|
||||
MXKAccount* account = [MXKAccountManager sharedManager].activeAccounts.firstObject;
|
||||
|
||||
[account changePassword:currentPasswordTextField.text with:newPasswordTextField1.text success:^{
|
||||
[account changePassword:self->currentPasswordTextField.text with:self->newPasswordTextField1.text success:^{
|
||||
|
||||
if (weakSelf)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue