[feat]: add/edit/remove contacts (#1172)
* add/edit/remove contacts * use proto type in contact action --------- Co-authored-by: canove <cassio@economicros.com.br>
This commit is contained in:
@@ -605,6 +605,16 @@ export const chatModificationToAppPatch = (mod: ChatModification, jid: string) =
|
||||
apiVersion: 5,
|
||||
operation: OP.SET
|
||||
}
|
||||
} else if ('contact' in mod) {
|
||||
patch = {
|
||||
syncAction: {
|
||||
contactAction: mod.contact || {}
|
||||
},
|
||||
index: ['contact', jid],
|
||||
type: 'critical_unblock_low',
|
||||
apiVersion: 2,
|
||||
operation: mod.contact ? OP.SET : OP.REMOVE
|
||||
}
|
||||
} else if ('star' in mod) {
|
||||
const key = mod.star.messages[0]
|
||||
patch = {
|
||||
|
||||
Reference in New Issue
Block a user