From 5969124d28f38470ea170e3a1a53b503b18f1ed0 Mon Sep 17 00:00:00 2001 From: dzwood <46049974+dzwood@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:54:45 -0400 Subject: [PATCH] Updated Stream and deprecated components * We may want to revisit the `MessageInput` component and create our own custom one: https://getstream.io/chat/docs/sdk/react/guides/theming/input_ui/ --- components/Chat/Chat.js | 18 +- package.json | 5 +- yarn.lock | 1587 +++++++++++++++++++++++---------------- 3 files changed, 938 insertions(+), 672 deletions(-) diff --git a/components/Chat/Chat.js b/components/Chat/Chat.js index 531128d1a..43876bb22 100644 --- a/components/Chat/Chat.js +++ b/components/Chat/Chat.js @@ -5,7 +5,7 @@ import { Channel, ChannelHeader, Chat as StreamChat, - MessageInputSmall, + MessageInput, MessageList, Thread, Window, @@ -36,14 +36,12 @@ export default function Chat(props = {}) { const { channelType, channelId } = props.streamChatChannel; const isLivestream = channelType === 'livestream'; - const { - getCurrentUserRoleForChatChannel, - streamChatRole, - } = useCurrentUserRoleForChatChannel({ - variables: { - channelId, - }, - }); + const { getCurrentUserRoleForChatChannel, streamChatRole } = + useCurrentUserRoleForChatChannel({ + variables: { + channelId, + }, + }); // Semantic shortcuts const connected = connectionStatus === CONNECTED; @@ -139,7 +137,7 @@ export default function Chat(props = {}) { )} - {authenticated && } + {authenticated && } {!authenticated && (