This commit is contained in:
Henry Jameson 2026-08-04 19:55:44 +03:00
commit 7b4eb25fc8
18 changed files with 24 additions and 25 deletions

View file

@ -18,7 +18,7 @@ export const chats = ({ credentials }) =>
url: PLEROMA_CHATS_URL,
credentials,
}).then(({ data }) => ({
data: data.map(parseChat).filter((c) => c),
data: data.map(parseChat).filter(Boolean),
}))
export const getOrCreateChat = ({ accountId, credentials }) =>
@ -40,7 +40,7 @@ export const chatMessages = ({
method: 'GET',
credentials,
}).then(({ data }) => ({
data: data.map(parseChatMessage).filter((c) => c),
data: data.map(parseChatMessage).filter(Boolean),
}))
}