Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
// Module ID: 10118
|
|
// Function ID: 10119
|
|
// Name: getParticipantTitle
|
|
// Dependencies: [4626, 10119, 4757, 1114, 2]
|
|
// Exports: default
|
|
|
|
// Module 10118 (getParticipantTitle)
|
|
import CallConstants from "CallConstants" /* 4626 */;
|
|
import NicknameUtilsDefault from "NicknameUtils" /* 4757 */;
|
|
import useIsGuestOrLurker from "useIsGuestOrLurker" /* 10119 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const ParticipantTypes = CallConstants.ParticipantTypes;
|
|
let result = size.fileFinishedImporting("modules/video_calls/getParticipantTitle.tsx");
|
|
|
|
export default function getParticipantTitle(guild_id, type, name) {
|
|
if (type.type === ParticipantTypes.ACTIVITY) {
|
|
name = undefined;
|
|
if (name != null) {
|
|
name = name.name;
|
|
}
|
|
if (name == null) {
|
|
name = null;
|
|
}
|
|
return name;
|
|
} else {
|
|
const user = type.user;
|
|
let id;
|
|
if (user != null) {
|
|
id = user.id;
|
|
}
|
|
const result = useIsGuestOrLurker.isGuestOrLurkerInGuild(guild_id.guild_id, id);
|
|
let str = "";
|
|
const name1 = NicknameUtilsDefault.getName(guild_id.getGuildId(), guild_id.id, type.user);
|
|
if (result) {
|
|
const intl = tmp10(1114).intl;
|
|
const _HermesInternal = HermesInternal;
|
|
str = " " + intl.string(tmp10(1114).t["pFO/Ph"]);
|
|
}
|
|
return name1 + str;
|
|
}
|
|
};
|