From 9ae36e5fac1aff27f0cc3be7cec8f7a3ab4e9a30 Mon Sep 17 00:00:00 2001 From: tienifr Date: Thu, 23 May 2024 17:43:05 +0700 Subject: [PATCH 1/2] fix user is not prompted with a warning message when leaving group --- src/components/ChatDetailsQuickActionsBar.tsx | 3 ++- src/libs/ReportUtils.ts | 11 ++++++++--- src/libs/actions/Report.ts | 9 +++++++-- src/pages/InviteReportParticipantsPage.tsx | 5 ++++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/components/ChatDetailsQuickActionsBar.tsx b/src/components/ChatDetailsQuickActionsBar.tsx index f15fc31aec45..8c5ef8ed520c 100644 --- a/src/components/ChatDetailsQuickActionsBar.tsx +++ b/src/components/ChatDetailsQuickActionsBar.tsx @@ -2,6 +2,7 @@ import React, {useState} from 'react'; import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; +import * as ReportUtils from '@libs/ReportUtils'; import * as Report from '@userActions/Report'; import type {Report as OnyxReportType} from '@src/types/onyx'; import Button from './Button'; @@ -35,7 +36,7 @@ function ChatDetailsQuickActionsBar({report}: ChatDetailsQuickActionsBarProps) { />