From 03af1afac1e9d08e9d27fedd7f2ed5720b7090d7 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Mon, 21 Nov 2022 17:26:38 +0100 Subject: [PATCH] =?UTF-8?q?When=20calling=20setComposingVisible,=20check?= =?UTF-8?q?=20that=20the=20=E2=80=9Cis=20composing=E2=80=9D=20message=20is?= =?UTF-8?q?=20visible=20as=20well=20as=20blocking=20text=20before=20scroll?= =?UTF-8?q?ing=20to=20the=20bottom=20of=20the=20chat=20conversation=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/ChatConversationView.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index a7128c1ee..ea3c860de 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -677,9 +677,11 @@ static UICompositeViewDescription *compositeDescription = nil; completion:^(BOOL finished) { _composeIndicatorView.hidden = !visible; }]; - if (_tableController.tableView.contentOffset.y + newComposingFrame.size.height >= (_tableController.tableView.contentSize.height - _tableController.tableView.frame.size.height)) { - [_tableController scrollToBottom:TRUE]; - } + if (visible) { + if (_tableController.tableView.contentOffset.y + newComposingFrame.size.height >= (_tableController.tableView.contentSize.height - _tableController.tableView.frame.size.height)) { + [_tableController scrollToBottom:TRUE]; + } + } } - (BOOL) groupCallAvailable {