improve old message collection
This commit is contained in:
parent
e3c0882a2e
commit
17a7aaafdd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue