From 17a7aaafddb9c141cf5dad9c4fa8d67f6b0cddfb Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Sun, 23 Jul 2023 05:19:42 +0300 Subject: [PATCH] improve old message collection --- frontend/src/stores.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/stores.js b/frontend/src/stores.js index 18c279f..2a2d526 100644 --- a/frontend/src/stores.js +++ b/frontend/src/stores.js @@ -312,7 +312,7 @@ class MessageStore extends Store { if (!this.isCollectingOldMessages) return false; - const target = 25; + const target = smallViewport.value ? 100 : 350; const delta = this.value.length - target; if (delta >= 1) { this.value.splice(0, delta);