mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add label feature (#955)
Co-authored-by: 刘建辉 <liujianhui@gongchang.com>
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user