From 99776448723e14410b9625414a13af4a629f1d57 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 22 Nov 2022 17:24:44 +0100 Subject: [PATCH] Add small 1px margin to make sure we scroll when Composing message appear while we just opened a chatroom --- Classes/ChatConversationView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index b0662973a..08f36882e 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -679,7 +679,7 @@ static UICompositeViewDescription *compositeDescription = nil; _composeIndicatorView.hidden = !visible; }]; if (visible) { - if (_tableController.tableView.contentOffset.y + newComposingFrame.size.height >= (_tableController.tableView.contentSize.height - _tableController.tableView.frame.size.height)) { + if (_tableController.tableView.contentOffset.y + newComposingFrame.size.height >= (_tableController.tableView.contentSize.height - _tableController.tableView.frame.size.height - 1)) { [_tableController scrollToBottom:TRUE]; } }