When calling setComposingVisible, check that the “is composing” message is visible as well as blocking text before scrolling to the bottom of the chat conversation view

This commit is contained in:
QuentinArguillere 2022-11-21 17:26:38 +01:00
parent 233865747e
commit 03af1afac1

View file

@ -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 {