diff --git a/src/boot/app/app-loader-functions.ts b/src/boot/app/app-loader-functions.ts index 0432d705..ff5bcfac 100644 --- a/src/boot/app/app-loader-functions.ts +++ b/src/boot/app/app-loader-functions.ts @@ -60,7 +60,7 @@ import { import { getSoapFetch, getXmlSoapFetch } from '../../network/fetch'; import { getTags, useTags } from '../../store/tags'; import { useNotify, useRefresh } from '../../store/network'; -import { changeTagColor, createTag, deleteTag, renameTag, updateTag } from '../../network/tags'; +import { changeTagColor, createTag, deleteTag, renameTag } from '../../network/tags'; // eslint-disable-next-line @typescript-eslint/ban-types export const getAppFunctions = (pkg: CarbonioModule): Record => ({ @@ -122,7 +122,6 @@ export const getAppFunctions = (pkg: CarbonioModule): Record = renameTag, changeTagColor, deleteTag, - updateTag, // STUFF useIsMobile, getBridgedFunctions: (): unknown => { diff --git a/src/network/tags.ts b/src/network/tags.ts index ba580c79..cc35dcb4 100644 --- a/src/network/tags.ts +++ b/src/network/tags.ts @@ -4,7 +4,6 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import produce from 'immer'; import { CreateTagRequest, CreateTagResponse, @@ -13,10 +12,8 @@ import { } from '../../types'; import { Tag } from '../../types/tags'; import { SHELL_APP_ID } from '../constants'; -import { useTagStore } from '../store/tags'; import { getSoapFetch } from './fetch'; -const set = useTagStore.setState; export const createTag = (tag: Omit): Promise => getSoapFetch(SHELL_APP_ID)('CreateTag', { _jsns: 'urn:zimbraMail', @@ -34,12 +31,6 @@ export const renameTag = (id: string, name: string): Promise action: { op: 'rename', id, name } }); -export const updateTag = (tag: Partial & { id: string }): Promise => - getSoapFetch(SHELL_APP_ID)('TagAction', { - _jsns: 'urn:zimbraMail', - action: { op: 'update', ...tag } - }); - export const changeTagColor = (id: string, color: string | number): Promise => getSoapFetch(SHELL_APP_ID)('TagAction', { _jsns: 'urn:zimbraMail',