30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
/* Metro module 14477; source: modules/friend_suggestions/FriendSuggestionUtils.tsx; dependencies: [2] */
|
|
function _fun109536(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14674:6, offset: 0x02350bfd, size: 87 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/friend_suggestions/FriendSuggestionUtils.tsx');
|
|
exports.getSuggestedContactNameForSuggestion = getSuggestedContactNameForSuggestion;
|
|
}
|
|
|
|
function getSuggestedContactNameForSuggestion(a0, a1) { // fn#109537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14674:217, offset: 0x02350c54, size: 189 bytes, params: 3, frame: 18
|
|
const value = undefined;
|
|
const r0 = (a1 == null ? value : a1.contactNames) != null && (a1 == null ? value : a1.contactNames.length) >= 2 ? a1 == null ? value : a1.contactNames.slice(0,
|
|
2).join(' ').trim() : value;
|
|
if (r0 == null) {
|
|
return value;
|
|
}
|
|
if (a0 == null) {
|
|
if (r0 != null) {
|
|
return r0;
|
|
}
|
|
}
|
|
if (a0 == null) {
|
|
return value;
|
|
}
|
|
if (a0 === r0) {
|
|
return value;
|
|
}
|
|
return a0.split(' ')[0] !== r0.split(' ')[0] ? r0 : value;
|
|
}
|
|
|