@skyzopedia/baileys-pro 8.0.3 → 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.
@@ -652,9 +652,13 @@ export const makeChatsSocket = (config) => {
652
652
  }
653
653
  }, jid);
654
654
  };
655
- const addOrEditContact = (jid, contact) => {
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) => {
@@ -866,7 +870,7 @@ export const makeChatsSocket = (config) => {
866
870
  resyncAppState,
867
871
  chatModify,
868
872
  cleanDirtyBits,
869
- addOrEditContact,
873
+ saveContact,
870
874
  removeContact,
871
875
  addLabel,
872
876
  addChatLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyzopedia/baileys-pro",
3
- "version": "8.0.3",
3
+ "version": "8.0.5",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",