|
|
|
@ -1587,10 +1587,16 @@ export default class ChatBubbles {
@@ -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
|
|
|
|
|