Browse Source

Adjust messages load count again

master
Eduard Kuzmenko 2 years ago
parent
commit
ca9852ee90
  1. 4
      .env
  2. 2
      src/components/chat/bubbles.ts

4
.env

@ -1,5 +1,5 @@ @@ -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

2
src/components/chat/bubbles.ts

@ -4483,7 +4483,7 @@ export default class ChatBubbles { @@ -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;

Loading…
Cancel
Save