From 27819f12cefa7c651cc9c92e7c52f1ee8a1647ad Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Wed, 29 Jun 2022 18:56:00 +0200 Subject: [PATCH] Fix rare chat crash --- .env | 4 ++-- src/components/chat/bubbles.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env b/.env index a0db534a..4433fb7e 100644 --- a/.env +++ b/.env @@ -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 diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index c70924e2..20057de4 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -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;