From 68f9008cf3357ed4d4e6d6c45c5a33593319ea49 Mon Sep 17 00:00:00 2001
From: Mohammad Luthfi Fathur Rahman <luthfi.ufi14@gmail.com>
Date: Mon, 18 Apr 2022 20:41:59 +0700
Subject: [PATCH 1/2] fix bluebox showing when trying to open context menu

---
 src/pages/home/report/ReportActionItemSingle.js | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/pages/home/report/ReportActionItemSingle.js b/src/pages/home/report/ReportActionItemSingle.js
index 82d98997e2c..66a1524ba94 100644
--- a/src/pages/home/report/ReportActionItemSingle.js
+++ b/src/pages/home/report/ReportActionItemSingle.js
@@ -16,6 +16,7 @@ import Navigation from '../../../libs/Navigation/Navigation';
 import ROUTES from '../../../ROUTES';
 import {withPersonalDetails} from '../../../components/OnyxProvider';
 import Tooltip from '../../../components/Tooltip';
+import ControlSelection from '../../../libs/ControlSelection';
 
 const propTypes = {
     /** All the data of the action */
@@ -63,7 +64,12 @@ const ReportActionItemSingle = (props) => {
 
     return (
         <View style={props.wrapperStyles}>
-            <Pressable style={styles.alignSelfStart} onPress={() => showUserDetails(props.action.actorEmail)}>
+            <Pressable
+                style={styles.alignSelfStart}
+                onPressIn={() => ControlSelection.block()}
+                onPressOut={() => ControlSelection.unblock()}
+                onPress={() => showUserDetails(props.action.actorEmail)}
+            >
                 <Tooltip text={props.action.actorEmail}>
                     <Avatar
                         imageStyles={[styles.actionAvatar]}
@@ -74,7 +80,12 @@ const ReportActionItemSingle = (props) => {
             <View style={[styles.chatItemRight]}>
                 {props.showHeader ? (
                     <View style={[styles.chatItemMessageHeader]}>
-                        <Pressable style={[styles.flexShrink1]} onPress={() => showUserDetails(props.action.actorEmail)}>
+                        <Pressable
+                            style={[styles.flexShrink1]}
+                            onPressIn={() => ControlSelection.block()}
+                            onPressOut={() => ControlSelection.unblock()}
+                            onPress={() => showUserDetails(props.action.actorEmail)}
+                        >
                             {_.map(personArray, (fragment, index) => (
                                 <ReportActionItemFragment
                                     key={`person-${props.action.sequenceNumber}-${index}`}

From 1460ef17242c5c462726727edbb431c8f6628e79 Mon Sep 17 00:00:00 2001
From: Mohammad Luthfi Fathur Rahman <luthfi.ufi14@gmail.com>
Date: Tue, 19 Apr 2022 09:44:01 +0700
Subject: [PATCH 2/2] cleaner func calling

---
 src/pages/home/report/ReportActionItemSingle.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pages/home/report/ReportActionItemSingle.js b/src/pages/home/report/ReportActionItemSingle.js
index 66a1524ba94..bc3c0ddcab3 100644
--- a/src/pages/home/report/ReportActionItemSingle.js
+++ b/src/pages/home/report/ReportActionItemSingle.js
@@ -66,8 +66,8 @@ const ReportActionItemSingle = (props) => {
         <View style={props.wrapperStyles}>
             <Pressable
                 style={styles.alignSelfStart}
-                onPressIn={() => ControlSelection.block()}
-                onPressOut={() => ControlSelection.unblock()}
+                onPressIn={ControlSelection.block}
+                onPressOut={ControlSelection.unblock}
                 onPress={() => showUserDetails(props.action.actorEmail)}
             >
                 <Tooltip text={props.action.actorEmail}>
@@ -82,8 +82,8 @@ const ReportActionItemSingle = (props) => {
                     <View style={[styles.chatItemMessageHeader]}>
                         <Pressable
                             style={[styles.flexShrink1]}
-                            onPressIn={() => ControlSelection.block()}
-                            onPressOut={() => ControlSelection.unblock()}
+                            onPressIn={ControlSelection.block}
+                            onPressOut={ControlSelection.unblock}
                             onPress={() => showUserDetails(props.action.actorEmail)}
                         >
                             {_.map(personArray, (fragment, index) => (
