@xuda.io/account_module 1.2.1832 → 1.2.1834
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/index.mjs +18 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2785,6 +2785,24 @@ export const unpin_contact = async function (req) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
+
export const not_spam_contact = async function (req) {
|
|
2789
|
+
const { contact_id, uid } = req;
|
|
2790
|
+
try {
|
|
2791
|
+
var contact_doc = await get_contact(uid, contact_id);
|
|
2792
|
+
contact_doc.is_spam = false;
|
|
2793
|
+
|
|
2794
|
+
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2795
|
+
delete_xuda_cache(contact_doc);
|
|
2796
|
+
|
|
2797
|
+
return contact_save_ret;
|
|
2798
|
+
} catch (err) {
|
|
2799
|
+
return {
|
|
2800
|
+
code: -24,
|
|
2801
|
+
data: err.message,
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
};
|
|
2805
|
+
|
|
2788
2806
|
//////// PROFILES //////////////
|
|
2789
2807
|
|
|
2790
2808
|
export const get_pending_share_profile_in = async function (uid, _id) {
|