This commit is contained in:
Mauro Romito
2022-10-20 19:51:10 +02:00
parent c626c86dd1
commit 35d45c8ec0
3 changed files with 1 additions and 20 deletions
-15
View File
@@ -5032,27 +5032,12 @@ static CGSize kThreadListBarButtonItemImageSize;
{
if (self.roomInputToolbarContainerHeightConstraint.constant != height)
{
// Hide temporarily the placeholder to prevent its distortion during height animation
if (toolbarView.placeholder.length)
{
savedInputToolbarPlaceholder = toolbarView.placeholder;
toolbarView.placeholder = nil;
}
[super roomInputToolbarView:toolbarView heightDidChanged:height completion:^(BOOL finished) {
if (completion)
{
completion (finished);
}
// Consider here the saved placeholder only if no new placeholder has been defined during the height animation.
if (!toolbarView.placeholder && self->savedInputToolbarPlaceholder.length)
{
// Restore the placeholder if any
toolbarView.placeholder = self->savedInputToolbarPlaceholder;
}
self->savedInputToolbarPlaceholder = nil;
}];
}
}