Don't present over navbar.

// FREEBIE
pull/1/head
Michael Kirk 7 years ago committed by Michael Kirk
parent 635c0275db
commit 18adf26e06

@ -1992,6 +1992,16 @@ typedef enum : NSUInteger {
- (void)conversationCellDidLongpressText:(ConversationViewCell *)cell viewItem:(ConversationViewItem *)viewItem
{
// TODO Interpolate from 0->0.3 depending on distance to make visible.
NSTimeInterval animationDuration = 0.3;
// Instead of animating manually we could use `scrollRectToVisible:animated:YES`, but then we'd need to juggle a
// completion handler into scrollDidEnd
[UIView animateWithDuration:animationDuration
animations:^{
[self.collectionView scrollRectToVisible:cell.frame animated:NO];
}
completion:^(BOOL finished) {
MessageActionsViewController *messageActionsViewController =
[[MessageActionsViewController alloc] initWithFocusedView:cell];
@ -2000,6 +2010,7 @@ typedef enum : NSUInteger {
[[OWSWindowManager sharedManager] showMessageActionsWindow:messageActionsViewController];
[self updateShouldObserveDBModifications];
}];
}
- (NSAttributedString *)attributedContactOrProfileNameForPhoneIdentifier:(NSString *)recipientId

Loading…
Cancel
Save