From 0753649f023619edf61ca4168781ccd7f178c099 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Tue, 12 Apr 2022 14:14:29 +0300 Subject: [PATCH] Fix handling chat resize --- src/components/chat/bubbles.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index d727435f..6fc8cdc4 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -2359,8 +2359,6 @@ export default class ChatBubbles { this.viewsMids.clear(); } - this.destroyResizeObserver(); - this.middleware.clean(); this.onAnimateLadder = undefined; @@ -2508,6 +2506,7 @@ export default class ChatBubbles { } } else { this.isFirstLoad = true; + this.destroyResizeObserver(); } const oldChatInner = this.chatInner;