From e8ffa13629baa87b73c1382743059a9b47ab8f44 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 4 Oct 2022 11:00:07 -0400 Subject: [PATCH] Remove the ability to 'Report chat' from Intro --- .../components/chat-message-list-intro.tsx | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/app/soapbox/features/chats/components/chat-message-list-intro.tsx b/app/soapbox/features/chats/components/chat-message-list-intro.tsx index d977a24dc..ebc4d1dd8 100644 --- a/app/soapbox/features/chats/components/chat-message-list-intro.tsx +++ b/app/soapbox/features/chats/components/chat-message-list-intro.tsx @@ -3,7 +3,6 @@ import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { openModal } from 'soapbox/actions/modals'; -import { initReport } from 'soapbox/actions/reports'; import Link from 'soapbox/components/link'; import { Avatar, Button, HStack, Icon, Stack, Text } from 'soapbox/components/ui'; import { useChatContext } from 'soapbox/contexts/chat-context'; @@ -38,11 +37,6 @@ const ChatMessageListIntro = () => { })); }; - const handleReportChat = () => { - dispatch(initReport(chat?.account as any)); - acceptChat.mutate(); - }; - if (!chat) { return null; } @@ -81,7 +75,7 @@ const ChatMessageListIntro = () => { {needsAcceptance ? ( - + - - - - - - + + ) : (