diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index 9548e1b5..84ce628c 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -1587,10 +1587,16 @@ export default class ChatBubbles { this.chat.dispatchEvent('setPeer', lastMsgId, !isJump); // warning - if(!lastMsgId || this.bubbles[topMessage] || lastMsgId === topMessage) { + if((!lastMsgId && !savedPosition) || this.bubbles[topMessage] || lastMsgId === topMessage) { this.scrollable.loadedAll.bottom = true; } + if(savedPosition) { + Promise.all([setPeerPromise, getHeavyAnimationPromise()]).then(() => { + this.scrollable.checkForTriggers(); + }); + } + this.log('scrolledAllDown:', this.scrollable.loadedAll.bottom); //if(!this.unreaded.length && dialog) { // lol