Ensure conversation view is first responder before presenting another view.

pull/1/head
Matthew Chen 7 years ago
parent 5ee33aca7b
commit e4f7995e4d

@ -5114,6 +5114,20 @@ interactionControllerForAnimationController:(id<UIViewControllerAnimatedTransiti
[self dismissViewControllerAnimated:YES completion:nil];
}
#pragma mark -
- (void)presentViewController:(UIViewController *)viewController
animated:(BOOL)animated
completion:(void (^__nullable)(void))completion
{
// Ensure that we are first responder before presenting other views.
// This ensures that the input toolbar will be restored after the
// presented view is dismissed.
[self becomeFirstResponder];
[super presentViewController:viewController animated:animated completion:completion];
}
@end
NS_ASSUME_NONNULL_END

Loading…
Cancel
Save