mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix crash in ASCII art creator for one-element children arrays
This commit is contained in:
@@ -150,7 +150,8 @@ static NSString * const kDefaultChildrenKey = @"kDefaultChildrenKey";
|
||||
|
||||
- (NSString *)asciiArtString
|
||||
{
|
||||
return [ASLayoutSpec asciiArtStringForChildren:@[self.child] parentName:[self asciiArtName]];
|
||||
NSArray *children = self.child ? @[self.child] : self.children;
|
||||
return [ASLayoutSpec asciiArtStringForChildren:children parentName:[self asciiArtName]];
|
||||
}
|
||||
|
||||
- (NSString *)asciiArtName
|
||||
|
||||
Reference in New Issue
Block a user