mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
array must be init'd otherwise arrayByAddingObject returns nil.
This commit is contained in:
@@ -44,6 +44,11 @@
|
|||||||
return [[self alloc] initWithChildren:children];
|
return [[self alloc] initWithChildren:children];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (instancetype)init
|
||||||
|
{
|
||||||
|
return [self initWithChildren:@[]];
|
||||||
|
}
|
||||||
|
|
||||||
- (instancetype)initWithChildren:(NSArray *)children
|
- (instancetype)initWithChildren:(NSArray *)children
|
||||||
{
|
{
|
||||||
if (!(self = [super init])) {
|
if (!(self = [super init])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user