1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

added apiAuthDeleteMessage

This commit is contained in:
Fedor Katurov 2020-09-08 12:05:04 +07:00
parent 5e85ae2aee
commit 9bdeb5aa0a
2 changed files with 15 additions and 2 deletions

View file

@ -51,6 +51,20 @@ export const apiAuthSendMessage = ({
.then(resultMiddleware)
.catch(errorMiddleware);
export const apiAuthDeleteMessage = ({
access,
username,
id,
}: {
access: string;
username: string;
id: number;
}): Promise<IResultWithStatus<{ message: IMessage }>> =>
api
.delete(API.USER.MESSAGE_DELETE(username, id), configWithToken(access))
.then(resultMiddleware)
.catch(errorMiddleware);
export const apiAuthGetUpdates = ({
access,
exclude_dialogs,