RoomViewController: Fix a crash on before iOS 14.

This commit is contained in:
SBiOSoftWhare
2021-10-29 13:47:42 +02:00
parent 899f8094f3
commit 773bf6ca28
+6
View File
@@ -2257,6 +2257,12 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
}
UIViewController *suggestionsViewController = self.userSuggestionCoordinator.toPresentable;
if (!suggestionsViewController)
{
return;
}
[suggestionsViewController.view setTranslatesAutoresizingMaskIntoConstraints:NO];
[self addChildViewController:suggestionsViewController];