Fix opening pinned messages

This commit is contained in:
morethanwords 2021-11-02 16:22:48 +04:00
parent 03f8661184
commit 179c161434
2 changed files with 3 additions and 3 deletions

4
.env
View File

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=0.9.1 VERSION=0.9.1
VERSION_FULL=0.9.1 (18) VERSION_FULL=0.9.1 (19)
BUILD=18 BUILD=19

View File

@ -1572,7 +1572,7 @@ export default class ChatBubbles {
} }
} }
const isChangingHeight = this.chat.input.messageInput.classList.contains('is-changing-height') || this.chat.container.classList.contains('is-toggling-helper'); const isChangingHeight = (this.chat.input.messageInput && this.chat.input.messageInput.classList.contains('is-changing-height')) || this.chat.container.classList.contains('is-toggling-helper');
return this.scrollable.scrollIntoViewNew( return this.scrollable.scrollIntoViewNew(
element, element,
position, position,