From 1f794319a97d9c91f35fa5d54a50adb0cfbe665f Mon Sep 17 00:00:00 2001 From: DuckieTM Date: Sun, 17 Mar 2024 09:53:18 +0100 Subject: [PATCH] Cleanup chatbar this needs to be fixed first --- src/api/utils/RoomChatFormatter.ts | 6 - .../views/messenger/FriendsMessengerView.tsx | 8 -- .../widgets/chat-input/ChatInputView.scss | 1 - .../room/widgets/chat-input/ChatInputView.tsx | 111 ++---------------- 4 files changed, 12 insertions(+), 114 deletions(-) diff --git a/src/api/utils/RoomChatFormatter.ts b/src/api/utils/RoomChatFormatter.ts index a6714cf..a9b273a 100644 --- a/src/api/utils/RoomChatFormatter.ts +++ b/src/api/utils/RoomChatFormatter.ts @@ -155,12 +155,6 @@ export const RoomChatFormatter = (content: string) => { ); } - if (content.includes("giphy.com/media")) { - content = ` -

- `; - } - const match = content.match(/@[a-zA-Z]+@/); if (match) { const colorTag = match[0].toString(); diff --git a/src/components/friends/views/messenger/FriendsMessengerView.tsx b/src/components/friends/views/messenger/FriendsMessengerView.tsx index 62c5768..819f315 100644 --- a/src/components/friends/views/messenger/FriendsMessengerView.tsx +++ b/src/components/friends/views/messenger/FriendsMessengerView.tsx @@ -4,7 +4,6 @@ import { FaTimes } from 'react-icons/fa'; import { AddEventLinkTracker, GetSessionDataManager, GetUserProfile, LocalizeText, RemoveLinkEventTracker, ReportType, SendMessageComposer } from '../../../../api'; import { Base, Button, ButtonGroup, Column, Flex, Grid, LayoutAvatarImageView, LayoutBadgeImageView, LayoutGridItem, LayoutItemCountView, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common'; import { useHelp, useMessenger } from '../../../../hooks'; -import { ChatInputStickersSelectorConsolaView } from '../../../room/widgets/chat-input/ChatInputStickersSelectorConsolaView'; import { FriendsMessengerThreadView } from './messenger-thread/FriendsMessengerThreadView'; export const FriendsMessengerView: FC<{}> = props => @@ -237,13 +236,6 @@ function startRecordingConsola(){ setMessageText(event.target.value) } onKeyDown={ onKeyDown } style={{paddingRight: 35}}/> -