fixed image storage local on minio
This commit is contained in:
@@ -5,7 +5,7 @@ import { useChatSocket } from "../hooks/useChatSocket";
|
||||
import { getPostForChat } from "../stores/chatPostStore";
|
||||
import { setActiveChatId } from "../stores/activeChatStore";
|
||||
import { useUnread } from "../context/UnreadContext";
|
||||
import { API_URL } from "../config/authConstants";
|
||||
import { getImageUrl } from "../config/authConstants";
|
||||
import Picker from "@emoji-mart/react";
|
||||
import emojiData from "@emoji-mart/data";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -69,7 +69,7 @@ export default function ChatPage() {
|
||||
};
|
||||
|
||||
const post = getPostForChat(chatId);
|
||||
const postImg = post?.images?.[0] ? `${API_URL}${post.images[0]}` : null;
|
||||
const postImg = getImageUrl(post?.images?.[0]);
|
||||
|
||||
return (
|
||||
<div className="f-app">
|
||||
|
||||
Reference in New Issue
Block a user