From 916b77e567a6ee4f5ca99129fc87841178367235 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Tue, 28 Jun 2022 19:49:52 +0200 Subject: [PATCH] Fix using startParam --- .env | 4 ++-- src/components/chat/input.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 2610b14a..a0db534a 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.5.0 -VERSION_FULL=1.5.0 (188) -BUILD=188 +VERSION_FULL=1.5.0 (189) +BUILD=189 diff --git a/src/components/chat/input.ts b/src/components/chat/input.ts index a1144d6c..ce2ece31 100644 --- a/src/components/chat/input.ts +++ b/src/components/chat/input.ts @@ -979,11 +979,11 @@ export default class ChatInput { this.center(true); } - public async getNeededFakeContainer() { + public async getNeededFakeContainer(startParam = this.startParam) { if(this.chat.selection.isSelecting) { return this.fakeSelectionWrapper; } else if( - this.startParam !== undefined || + startParam !== undefined || !(await this.chat.canSend()) || this.chat.type === 'pinned' || await this.chat.isStartButtonNeeded() @@ -1236,7 +1236,7 @@ export default class ChatInput { this.managers.appPeersManager.canPinMessage(peerId), this.managers.appPeersManager.isBot(peerId), this.chat.canSend(), - this.getNeededFakeContainer(), + this.getNeededFakeContainer(startParam), modifyAckedPromise(this.managers.acknowledged.appProfileManager.getProfileByPeerId(peerId)), btnScheduled ? modifyAckedPromise(this.managers.acknowledged.appMessagesManager.getScheduledMessages(peerId)) : undefined, sendAs ? (sendAs.setPeerId(this.chat.peerId), sendAs.updateManual(true)) : undefined,