fix chats api
This commit is contained in:
parent
4a59c42395
commit
28efd7ebd2
6 changed files with 63 additions and 24 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue