decord/source/modules/video_calls/getParticipantTitle.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

43 lines
1.3 KiB
TypeScript

// Module ID: 10053
// Function ID: 10054
// Name: getParticipantTitle
// Dependencies: [4581, 10054, 4712, 1114, 2]
// Exports: default
// Module 10053 (getParticipantTitle)
import set from "set" /* 2 */;
import ParticipantTypes2 from "ParticipantTypes" /* 4581 */;
import getNicknameDefault from "getNickname" /* 4712 */;
import useIsGuestOrLurker from "useIsGuestOrLurker" /* 10054 */;
const ParticipantTypes = ParticipantTypes2.ParticipantTypes;
let result = set.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);
const obj2 = useIsGuestOrLurker;
let str = "";
const name1 = getNicknameDefault.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;
}
};