mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-14 14:59:57 +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 {
|
||||
|
||||
Reference in New Issue
Block a user