feat(business): change profile/cover photo and manage quick replies (#1724)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user