diff --git a/lib/utils/chat-thread-item-loader-cache.js b/lib/utils/chat-thread-item-loader-cache.js --- a/lib/utils/chat-thread-item-loader-cache.js +++ b/lib/utils/chat-thread-item-loader-cache.js @@ -202,17 +202,15 @@ break; } } - if ( - firstNItemsResolved && - this.loadingState && - n === this.loadingState.topNProcessed - ) { - this.currentState = { - topNProcessed: n, - pointerListOrderedByAtLeastTime, - pointerListOrderedByAtMostTime, - }; - this.loadingState = null; + if (firstNItemsResolved) { + if (n === this.loadingState?.topNProcessed) { + this.currentState = { + topNProcessed: n, + pointerListOrderedByAtLeastTime, + pointerListOrderedByAtMostTime, + }; + this.loadingState = null; + } break; }