Skip to content

Commit

Permalink
Update chat-utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarts authored Aug 31, 2024
1 parent cb2a9c6 commit 9c18258
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Utils/chat-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 9c18258

Please sign in to comment.