Remove debug mode from chat and optimize image usage
This commit is contained in:
@@ -7,10 +7,11 @@ import {
|
||||
UpdateAddressType,
|
||||
WishlistResponse,
|
||||
CommentsResponse,
|
||||
ChatListResponse,
|
||||
ChatMessagesResponse,
|
||||
CreateChatRequest,
|
||||
CreateChatResponse,
|
||||
GetChatListResponse,
|
||||
ChatDetailResponse,
|
||||
} from "../types/ProfileTypes";
|
||||
|
||||
export const getProfile = async () => {
|
||||
@@ -54,15 +55,15 @@ export const changeEmail = async (email: string) => {
|
||||
};
|
||||
|
||||
// Chat Services
|
||||
export const getChatList = async (): Promise<ChatListResponse> => {
|
||||
const { data } = await axios.get("/chat/list");
|
||||
export const getChatList = async (): Promise<GetChatListResponse> => {
|
||||
const { data } = await axios.get("/chat/user");
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getChatMessages = async (
|
||||
export const getChatDetail = async (
|
||||
chatId: string
|
||||
): Promise<ChatMessagesResponse> => {
|
||||
const { data } = await axios.get(`/chat/${chatId}/messages`);
|
||||
): Promise<ChatDetailResponse> => {
|
||||
const { data } = await axios.get(`/chat/user/${chatId}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user