mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
May as well use the existing visibility function. (#1684)
This commit is contained in:
@@ -941,7 +941,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
||||
[self _addSubnodeViewsAndLayers];
|
||||
}
|
||||
|
||||
if (self.interfaceState & ASInterfaceStateVisible) {
|
||||
if (ASInterfaceStateIncludesVisible(self.interfaceState)) {
|
||||
// TODO: Change this to recursivelyEnsureDisplay - but need a variant that does not skip
|
||||
// nodes that have shouldBypassEnsureDisplay set (such as image nodes) so they are rasterized.
|
||||
[self recursivelyDisplayImmediately];
|
||||
|
||||
Reference in New Issue
Block a user