From 5fb6ed7b35707fd51df344fe01cef9804e66227c Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Wed, 9 Feb 2022 18:20:26 +0400 Subject: [PATCH] Fix loading search media tab if response is empty --- src/components/appSearchSuper..ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/appSearchSuper..ts b/src/components/appSearchSuper..ts index 42d55834..f8d91e5c 100644 --- a/src/components/appSearchSuper..ts +++ b/src/components/appSearchSuper..ts @@ -392,7 +392,7 @@ export default class AppSearchSuper { this.searchGroupMedia = new SearchGroup(false, 'messages', true); this.scrollable.onScrolledBottom = () => { - if(this.mediaTab.contentTab && this.mediaTab.contentTab.childElementCount/* && false */) { + if(this.mediaTab.contentTab && !this.loaded[this.mediaTab.inputFilter]/* && false */) { //this.log('onScrolledBottom will load media'); this.load(true); }