fix chats api

This commit is contained in:
Henry Jameson 2026-06-13 23:32:08 +03:00
commit 28efd7ebd2
6 changed files with 63 additions and 24 deletions

View file

@ -1504,9 +1504,9 @@ export const chats = ({ credentials }) =>
promisedRequest({
url: PLEROMA_CHATS_URL,
credentials,
}).then((data) => {
chats: data.map(parseChat).filter((c) => c)
})
}).then((data) => ({
chatList: data.map(parseChat).filter((c) => c),
}))
export const getOrCreateChat = ({ accountId, credentials }) =>
promisedRequest({