Dismiss message actions UI on orientation change.

This commit is contained in:
Matthew Chen 2019-03-11 10:53:54 -04:00
parent ef3f36ad41
commit 41a2a954f5
1 changed files with 5 additions and 0 deletions

View File

@ -4988,6 +4988,7 @@ typedef enum : NSUInteger {
- (void)conversationViewModelDidDeleteMostRecentMenuActionsViewItem
{
OWSAssertIsOnMainThread();
[[OWSWindowManager sharedManager] hideMenuActionsWindow];
}
@ -4996,8 +4997,12 @@ typedef enum : NSUInteger {
- (void)viewWillTransitionToSize:(CGSize)size
withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
{
OWSAssertIsOnMainThread();
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
[[OWSWindowManager sharedManager] hideMenuActionsWindow];
// Snapshot the "last visible row".
NSIndexPath *_Nullable lastVisibleIndexPath = self.lastVisibleIndexPath;