From 8eb4e682d9ab6103e780532ff98b9647e4d124a3 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 20 Nov 2017 15:21:48 -0500 Subject: [PATCH] Revert "Show menu controller from centroid of message cells." This reverts commit 08bb1c909d58b33c75f60b471dc2ccf6018eb7f2. --- .../ViewControllers/ConversationView/Cells/OWSMessageCell.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m index d13763a1d..8b1e14580 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m @@ -1197,11 +1197,7 @@ NS_ASSUME_NONNULL_BEGIN // We "eagerly" respond when the long press begins, not when it ends. if (sender.state == UIGestureRecognizerStateBegan) { - // Show the menu controller from the centroid of the cell, - // not the touch location. This disambiguates which cell - // is the context for the menu if the user presents the menu - // controller from the border between two cells. - CGPoint location = CGPointMake(self.width * 0.5f, self.height * 0.5f); + CGPoint location = [sender locationInView:self]; [self showMenuController:location]; } }