mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Collect subnodes passing the test, not the node with the subnodes passing the test.
This commit is contained in:
@@ -144,7 +144,7 @@ static void _ASDisplayNodeFindAllSubnodes(NSMutableArray *array, ASDisplayNode *
|
||||
|
||||
for (ASDisplayNode *subnode in node.subnodes) {
|
||||
if (block(subnode)) {
|
||||
[array addObject:node];
|
||||
[array addObject:subnode];
|
||||
}
|
||||
|
||||
_ASDisplayNodeFindAllSubnodes(array, subnode, block);
|
||||
|
||||
Reference in New Issue
Block a user