Skip to content

Commit

Permalink
Suppression de l'option "Quitter" dans les paramètres du salon (avait…
Browse files Browse the repository at this point in the history
… été réintroduit par erreur)
  • Loading branch information
Nicolas Buquet committed Sep 12, 2023
1 parent 7317bab commit b30cf73
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Riot/Modules/Room/Settings/RoomSettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
ROOM_SETTINGS_MAIN_SECTION_ROW_TAG,
ROOM_SETTINGS_MAIN_SECTION_ROW_DIRECT_CHAT,
ROOM_SETTINGS_MAIN_SECTION_ROW_MUTE_NOTIFICATIONS,
ROOM_SETTINGS_MAIN_SECTION_ROW_LEAVE,
//Tchap: Specific rows in room settings
ROOM_SETTINGS_MAIN_SECTION_ROW_ACCESS_BY_LINK,
ROOM_SETTINGS_MAIN_SECTION_ROW_ACCESS_RULE
Expand Down Expand Up @@ -526,7 +525,6 @@ - (void)updateSections
}
[sectionMain addRowWithTag:ROOM_SETTINGS_MAIN_SECTION_ROW_ACCESS_BY_LINK];
[sectionMain addRowWithTag:ROOM_SETTINGS_MAIN_SECTION_ROW_ACCESS_RULE];
[sectionMain addRowWithTag:ROOM_SETTINGS_MAIN_SECTION_ROW_LEAVE];
[tmpSections addObject:sectionMain];

if (RiotSettings.shared.roomSettingsScreenAllowChangingAccessSettings)
Expand Down Expand Up @@ -2413,22 +2411,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell = roomAccessInfo;
}
}
else if (row == ROOM_SETTINGS_MAIN_SECTION_ROW_LEAVE)
{
MXKTableViewCellWithButton *leaveCell = [tableView dequeueReusableCellWithIdentifier:[MXKTableViewCellWithButton defaultReuseIdentifier] forIndexPath:indexPath];

NSString* title = [VectorL10n leave];

[leaveCell.mxkButton setTitle:title forState:UIControlStateNormal];
[leaveCell.mxkButton setTitle:title forState:UIControlStateHighlighted];
[leaveCell.mxkButton setTintColor:ThemeService.shared.theme.tintColor];
leaveCell.mxkButton.titleLabel.font = [UIFont systemFontOfSize:17];

[leaveCell.mxkButton removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[leaveCell.mxkButton addTarget:self action:@selector(onLeave:) forControlEvents:UIControlEventTouchUpInside];

cell = leaveCell;
}
}
else if (section == SECTION_TAG_ACCESS)
{
Expand Down

0 comments on commit b30cf73

Please sign in to comment.