Adjust messages load count again

This commit is contained in:
Eduard Kuzmenko 2022-02-27 21:09:02 +02:00
parent 1c117f19ef
commit ca9852ee90
2 changed files with 3 additions and 3 deletions

4
.env
View File

@ -1,5 +1,5 @@
API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.2.0
VERSION_FULL=1.2.0 (117)
BUILD=117
VERSION_FULL=1.2.0 (118)
BUILD=118

View File

@ -4483,7 +4483,7 @@ export default class ChatBubbles {
const isBroadcast = this.appPeersManager.isBroadcast(peerId);
//console.time('appImManager call getHistory');
const pageCount = Math.min(30, windowSize.height / 75/* * 1.25 */ | 0);
const pageCount = Math.min(30, windowSize.height / 48/* * 1.25 */ | 0);
//const loadCount = Object.keys(this.bubbles).length > 0 ? 50 : pageCount;
const realLoadCount = isBroadcast ? 20 : (Object.keys(this.bubbles).length > 0 ? Math.max(35, pageCount) : pageCount);
//const realLoadCount = pageCount;//const realLoadCount = 50;