MESSENGER-4295 add additional information for maintenance

This commit is contained in:
JanNiklas Grabowski
2023-07-26 13:07:22 +00:00
committed by Arnfried Griesert
parent f69d9d8433
commit e5f822c556
9 changed files with 125 additions and 81 deletions
@@ -3026,12 +3026,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
downtimeCell.textLabel.text = [self bwiDowntimeCellText];
downtimeCell.textLabel.textColor = [self bwiDowntimeTextColor];
downtimeCell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
// bwi: with descriptions coming soon we need to do this dynamically
if ([[[ServerDowntimeDefaultService alloc] init] isSameDay]) {
downtimeCell.textLabel.numberOfLines = 6;
} else {
downtimeCell.textLabel.numberOfLines = 7;
}
downtimeCell.textLabel.numberOfLines = 0;
cell = downtimeCell;
@@ -3048,7 +3043,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
downtimeCell.textLabel.text = [BWIL10n bwiOutdatedSettingsMessage:AppInfo.current.displayName];
downtimeCell.textLabel.textColor = [UIColor blackColor];
downtimeCell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
downtimeCell.textLabel.numberOfLines = 5;
downtimeCell.textLabel.numberOfLines = 0;
cell = downtimeCell;
}
@@ -5255,7 +5250,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
#pragma mark - bwi Messenger Additions
- (NSString*) bwiDowntimeCellText {
NSString *downtimeText = [NSString stringWithFormat:@"\n%@\n\n", [[[ServerDowntimeDefaultService alloc] init] downtimeText]];
NSString *downtimeText = [NSString stringWithFormat:@"\n%@\n", [[[ServerDowntimeDefaultService alloc] init] downtimeText]];
return downtimeText;
}