From 2ee35506cb34ffb340e965ced3ffdfbeee6a2854 Mon Sep 17 00:00:00 2001 From: Pete Walters Date: Mon, 7 Aug 2023 13:21:36 -0500 Subject: [PATCH] Fix slide up animation when beginning a quote or edit. --- .../Context Menus/ContextMenuInteraction.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/Context Menus/ContextMenuInteraction.swift b/Signal/src/ViewControllers/Context Menus/ContextMenuInteraction.swift index bd3a9f9527..a35b0acc9a 100644 --- a/Signal/src/ViewControllers/Context Menus/ContextMenuInteraction.swift +++ b/Signal/src/ViewControllers/Context Menus/ContextMenuInteraction.swift @@ -202,18 +202,18 @@ public class ContextMenuInteraction: NSObject, UIInteraction { if animated { contextMenuController?.animateOut({ - completion() self.delegate?.contextMenuInteraction(self, didEndForConfiguration: configuration) self.contextMenuController?.view.removeFromSuperview() self.contextMenuController = nil + completion() }) } else { targetedPreview?.view.isHidden = false targetedPreview?.auxiliaryView?.isHidden = false delegate?.contextMenuInteraction(self, didEndForConfiguration: configuration) - completion() self.contextMenuController?.view.removeFromSuperview() self.contextMenuController = nil + completion() } }