mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Remove setNeedsDataFetch queuing, as interfaceState always performs fetch on re-enter
This commit is contained in:
@@ -1731,8 +1731,6 @@ static BOOL ShouldUseNewRenderingRange = YES;
|
||||
{
|
||||
if (ASInterfaceStateIncludesFetchData(_interfaceState)) {
|
||||
[self recursivelyFetchData];
|
||||
} else {
|
||||
_needsDataFetch = YES;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1802,11 +1800,7 @@ static BOOL ShouldUseNewRenderingRange = YES;
|
||||
BOOL nowFetchData = ASInterfaceStateIncludesFetchData(newState);
|
||||
BOOL wasFetchData = ASInterfaceStateIncludesFetchData(oldState);
|
||||
|
||||
// When a node has been queued up for a data fetch via setNeedsDataFetch, override the default behavior
|
||||
if (_needsDataFetch) {
|
||||
[self recursivelyFetchData];
|
||||
_needsDataFetch = NO;
|
||||
} else if (nowFetchData != wasFetchData) {
|
||||
if (nowFetchData != wasFetchData) {
|
||||
if (nowFetchData) {
|
||||
[self fetchData];
|
||||
} else {
|
||||
|
||||
@@ -101,8 +101,6 @@ typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
|
||||
|
||||
ASDisplayNodeExtraIvars _extra;
|
||||
|
||||
BOOL _needsDataFetch;
|
||||
|
||||
#if TIME_DISPLAYNODE_OPS
|
||||
@public
|
||||
NSTimeInterval _debugTimeToCreateView;
|
||||
|
||||
Reference in New Issue
Block a user