From 47c02308c0cf1e58da33d4ae9313890ce2cad603 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Tue, 30 Aug 2022 17:59:10 -0300 Subject: [PATCH] Regression: Jump to message from search view (#4476) --- app/containers/message/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/containers/message/index.tsx b/app/containers/message/index.tsx index 6f9d5c8bf..39e236f98 100644 --- a/app/containers/message/index.tsx +++ b/app/containers/message/index.tsx @@ -115,12 +115,14 @@ class MessageContainer extends React.Component { + onPressAction = () => { const { closeEmojiAndAction } = this.props; if (closeEmojiAndAction) { - closeEmojiAndAction(this.onPress); + return closeEmojiAndAction(this.onPress); } + + return this.onPress(); }; onPress = debounce( @@ -382,7 +384,7 @@ class MessageContainer extends React.Component