Files
discord-decomp/sources/modules/friend_suggestions/FriendSuggestionUtils.tsx
T
2026-07-28 01:06:53 +03:00

33 lines
1.6 KiB
TypeScript

/* Metro module 14477; source: modules/friend_suggestions/FriendSuggestionUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
(FileImportTrackerModule).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;
}
global.__d(_fun109536, 14477, [2]) /* metro module 14477, dependencies: [2] */;