@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.
- package/lib/Socket/chats.js +7 -3
- 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
|
|
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
|
-
|
|
873
|
+
saveContact,
|
|
870
874
|
removeContact,
|
|
871
875
|
addLabel,
|
|
872
876
|
addChatLabel,
|