@xuda.io/account_module 1.2.849 → 1.2.851
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1268,10 +1268,12 @@ const get_contact_pattern = async function (doc) {
|
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
} else if (doc?.
|
|
1272
|
-
|
|
1271
|
+
} else if (pending && doc?.shared_from_uid) {
|
|
1272
|
+
// pending share request
|
|
1273
|
+
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1273
1274
|
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1274
1275
|
} else if (doc?.reference_doc?.shared_from_uid) {
|
|
1276
|
+
//active share
|
|
1275
1277
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
|
|
1276
1278
|
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1277
1279
|
} else if (doc.contact_uid) {
|