feat(business): change profile/cover photo and manage quick replies (#1724)

This commit is contained in:
vini
2025-09-07 08:08:26 -03:00
committed by GitHub
parent 084761dc31
commit 50fc83b008
8 changed files with 217 additions and 8 deletions
+16
View File
@@ -666,6 +666,22 @@ export const chatModificationToAppPatch = (mod: ChatModification, jid: string) =
apiVersion: 1,
operation: OP.SET
}
} else if ('quickReply' in mod) {
patch = {
syncAction: {
quickReplyAction: {
count: 0,
deleted: mod.quickReply.deleted || false,
keywords: [],
message: mod.quickReply.message || '',
shortcut: mod.quickReply.shortcut || ''
}
},
index: ['quick_reply', mod.quickReply.timestamp || String(Math.floor(Date.now() / 1000))],
type: 'regular',
apiVersion: 2,
operation: OP.SET
}
} else if ('addLabel' in mod) {
patch = {
syncAction: {