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

@ -347,13 +347,13 @@ export const setReportState = ({ id, state, credentials }) => {
}
export const getInstanceDBConfig = ({ credentials }) =>
get({
promisedRequest({
url: CONFIG_URL,
credentials,
})
export const getInstanceConfigDescriptions = ({ credentials }) =>
get({
promisedRequest({
url: DESCRIPTIONS_URL,
credentials,
})

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({