Fix rare chat crash

This commit is contained in:
Eduard Kuzmenko 2022-06-29 18:56:00 +02:00
parent 916b77e567
commit 27819f12ce
2 changed files with 5 additions and 3 deletions

4
.env
View File

@ -1,5 +1,5 @@
API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.5.0
VERSION_FULL=1.5.0 (189)
BUILD=189
VERSION_FULL=1.5.0 (190)
BUILD=190

View File

@ -3165,7 +3165,9 @@ export default class ChatBubbles {
this.ejectBubbles();
for(const [bubble, oldBubble] of this.bubblesToReplace) {
scrollSaver.replaceSaved(oldBubble, bubble);
if(scrollSaver) {
scrollSaver.replaceSaved(oldBubble, bubble);
}
if(!loadQueue.find((details) => details.bubble === bubble)) {
continue;