update chats

This commit is contained in:
Ren Amamiya
2023-05-27 16:44:13 +07:00
parent 79e948ac05
commit ff6d494b49
11 changed files with 109 additions and 69 deletions

View File

@@ -12,7 +12,7 @@ export const useChats = create((set) => ({
export const useChatMessages = create((set) => ({
messages: [],
fetch: async (receiver_pubkey: string, sender_pubkey: string) => {
const response = await getChatMessages(receiver_pubkey, sender_pubkey);
const response: any = await getChatMessages(receiver_pubkey, sender_pubkey);
set({ messages: response });
},
add: (message: any) => {