@skyzopedia/baileys-pro 8.0.4 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Socket/chats.js +6 -2
- package/package.json +1 -1
package/lib/Socket/chats.js
CHANGED
|
@@ -652,9 +652,13 @@ export const makeChatsSocket = (config) => {
|
|
|
652
652
|
}
|
|
653
653
|
}, jid);
|
|
654
654
|
};
|
|
655
|
-
const saveContact = (jid,
|
|
655
|
+
const saveContact = (jid, fullName) => {
|
|
656
656
|
return chatModify({
|
|
657
|
-
contact
|
|
657
|
+
contact: {
|
|
658
|
+
fullName,
|
|
659
|
+
lidJid: jid,
|
|
660
|
+
saveOnPrimaryAddressbook: true
|
|
661
|
+
}
|
|
658
662
|
}, jid);
|
|
659
663
|
};
|
|
660
664
|
const removeContact = (jid) => {
|