@xuda.io/account_module 1.2.1763 → 1.2.1764
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 +9 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1176,18 +1176,20 @@ const get_contact_pattern = async function (doc) {
|
|
|
1176
1176
|
// }
|
|
1177
1177
|
// } else
|
|
1178
1178
|
|
|
1179
|
-
if (doc?.shared_from_uid) {
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}
|
|
1179
|
+
// if (doc?.shared_from_uid) {
|
|
1180
|
+
// //&& (doc.pending || (doc.team_req_id && doc.contact_share_copy))) {
|
|
1181
|
+
// // pending or active share request
|
|
1182
|
+
// const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1183
|
+
// ret = shared_from_uid_ret.data.profile_avatar;
|
|
1184
|
+
// }
|
|
1185
|
+
|
|
1185
1186
|
// else if (doc?.reference_doc?.shared_from_uid) {
|
|
1186
1187
|
// //active share
|
|
1187
1188
|
// const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
|
|
1188
1189
|
// ret = shared_from_uid_ret.data.profile_avatar;
|
|
1189
1190
|
// }
|
|
1190
|
-
else
|
|
1191
|
+
// else
|
|
1192
|
+
if (doc.contact_uid) {
|
|
1191
1193
|
switch (doc.avatar_source) {
|
|
1192
1194
|
case 'fictional':
|
|
1193
1195
|
ret = `fictional-avatar-pattern.png`;
|