Skip to content

Commit

Permalink
revert 27268
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Sep 19, 2023
1 parent d1192a5 commit 0ab7332
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions src/libs/Navigation/NavigationRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import Log from '../Log';
import StatusBar from '../StatusBar';
import useCurrentReportID from '../../hooks/useCurrentReportID';
import useWindowDimensions from '../../hooks/useWindowDimensions';
import * as ReportActionContextMenu from '../../pages/home/report/ContextMenu/ReportActionContextMenu';
import * as EmojiPickerAction from '../actions/EmojiPickerAction';

// https://reactnavigation.org/docs/themes
const navigationTheme = {
Expand Down Expand Up @@ -123,10 +121,6 @@ function NavigationRoot(props) {
if (!state) {
return;
}
ReportActionContextMenu.hideContextMenu();
ReportActionContextMenu.hideDeleteModal();
EmojiPickerAction.hideEmojiPicker(true);

updateCurrentReportID(state);
parseAndLogRoute(state);
animateStatusBarBackgroundColor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ class BasePopoverReactionList extends React.Component {
* Hide the ReactionList modal popover.
*/
hideReactionList() {
if (!this.state.isPopoverVisible) {
return;
}
this.setState({
isPopoverVisible: false,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,10 @@ function PopoverReactionList(props) {
const showReactionList = (event, reactionListAnchor, emojiName, reportActionID) => {
setReactionListReportActionID(reportActionID);
setReactionListEmojiName(emojiName);
if (!innerReactionListRef.current || !innerReactionListRef.current.hideReactionList) {
return;
}
innerReactionListRef.current.showReactionList(event, reactionListAnchor);
};

const hideReactionList = () => {
if (!innerReactionListRef.current || !innerReactionListRef.current.hideReactionList) {
return;
}
innerReactionListRef.current.hideReactionList();
};

Expand Down
7 changes: 0 additions & 7 deletions src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@ function ReportActionsView(props) {
}
}, [props.report, didSubscribeToReportTypingEvents, reportID]);

useEffect(() => {
if (isFocused || !context.reactionListRef || !context.reactionListRef.current) {
return;
}
context.reactionListRef.current.hideReactionList();
}, [isFocused, context.reactionListRef]);

/**
* Retrieves the next set of report actions for the chat once we are nearing the end of what we are currently
* displaying.
Expand Down

0 comments on commit 0ab7332

Please sign in to comment.