diff --git a/apps/audius-client/packages/mobile/src/screens/chat-screen/ChatScreen.tsx b/apps/audius-client/packages/mobile/src/screens/chat-screen/ChatScreen.tsx index ffbde711f13..9d1b1e2ea1e 100644 --- a/apps/audius-client/packages/mobile/src/screens/chat-screen/ChatScreen.tsx +++ b/apps/audius-client/packages/mobile/src/screens/chat-screen/ChatScreen.tsx @@ -676,7 +676,7 @@ export const ChatScreen = () => { )} - {canSendMessage ? ( + {canSendMessage && chat ? ( { const dispatch = useDispatch() const { isEnabled: isChatEnabled } = useFlag(FeatureFlags.CHAT_ENABLED) const { firstOtherUser, canSendMessage } = useCanSendMessage(currentChatId) + const chat = useSelector((state) => getChat(state, currentChatId ?? '')) // Get the height of the header so we can slide the messages list underneath it for the blur effect const [headerRef, headerBounds] = useMeasure({ @@ -101,7 +109,7 @@ export const ChatPage = ({ currentChatId }: { currentChatId?: string }) => { className={styles.messageList} chatId={currentChatId} /> - {canSendMessage ? ( + {canSendMessage && chat ? (