Adjust messages load count again
This commit is contained in:
parent
1c117f19ef
commit
ca9852ee90
4
.env
4
.env
@ -1,5 +1,5 @@
|
|||||||
API_ID=1025907
|
API_ID=1025907
|
||||||
API_HASH=452b0359b988148995f22ff0f4229750
|
API_HASH=452b0359b988148995f22ff0f4229750
|
||||||
VERSION=1.2.0
|
VERSION=1.2.0
|
||||||
VERSION_FULL=1.2.0 (117)
|
VERSION_FULL=1.2.0 (118)
|
||||||
BUILD=117
|
BUILD=118
|
||||||
|
@ -4483,7 +4483,7 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
const isBroadcast = this.appPeersManager.isBroadcast(peerId);
|
const isBroadcast = this.appPeersManager.isBroadcast(peerId);
|
||||||
//console.time('appImManager call getHistory');
|
//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 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 = isBroadcast ? 20 : (Object.keys(this.bubbles).length > 0 ? Math.max(35, pageCount) : pageCount);
|
||||||
//const realLoadCount = pageCount;//const realLoadCount = 50;
|
//const realLoadCount = pageCount;//const realLoadCount = 50;
|
||||||
|
Loading…
Reference in New Issue
Block a user