feat: add label feature (#955)

Co-authored-by: 刘建辉 <liujianhui@gongchang.com>
This commit is contained in:
建辉
2024-09-22 19:48:17 +08:00
committed by GitHub
parent 9e4e211751
commit 6ff945502d
4 changed files with 43 additions and 0 deletions

View File

@@ -620,6 +620,21 @@ export const chatModificationToAppPatch = (
apiVersion: 1,
operation: OP.SET,
}
} else if('addLabel' in mod) {
patch = {
syncAction: {
labelEditAction: {
name: mod.addLabel.name,
color: mod.addLabel.color,
predefinedId : mod.addLabel.predefinedId,
deleted: mod.addLabel.deleted
}
},
index: ['label_edit', mod.addLabel.id],
type: 'regular',
apiVersion: 3,
operation: OP.SET,
}
} else if('addChatLabel' in mod) {
patch = {
syncAction: {