mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Address pull request comments
This commit is contained in:
@@ -796,14 +796,14 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
{
|
||||
ASTableNode *tableNode = self.tableNode;
|
||||
if (tableNode && [tableNode supportsRangeManagedInterfaceState]) {
|
||||
// Only use the interfaceStatate of nodes that are range managed
|
||||
// Only use the interfaceState of nodes that are range managed
|
||||
return self.tableNode.interfaceState;
|
||||
} else {
|
||||
// For not range managed nodes or until we can always create an associated ASTableNode
|
||||
// without a retain cycle, we might be on our own to try to guess if we're visible. The node normally
|
||||
// handles this even if it is the root / directly added to the view hierarchy.
|
||||
return (self.window != nil ? ASInterfaceStateVisible : ASInterfaceStateNone);
|
||||
}
|
||||
|
||||
// For not range managed nodes or until we can always create an associated ASTableNode
|
||||
// without a retain cycle, we might be on our own to try to guess if we're visible. The node normally
|
||||
// handles this even if it is the root / directly added to the view hierarchy.
|
||||
return (self.window != nil ? ASInterfaceStateVisible : ASInterfaceStateNone);
|
||||
}
|
||||
|
||||
#pragma mark - ASRangeControllerDelegate
|
||||
|
||||
Reference in New Issue
Block a user