decord/source/modules/video_calls/getParticipantTitle.tsx

44 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 12660
// Function ID: 12661
2026-07-20 16:05:17 +00:00
// Name: getParticipantTitle
2026-08-24 06:08:38 +00:00
// Dependencies: [4549, 12661, 4801, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 12660 (getParticipantTitle)
import set from "set" /* 2 */;
import ParticipantTypes2 from "ParticipantTypes" /* 4549 */;
import getNicknameDefault from "getNickname" /* 4801 */;
import useIsGuestOrLurker from "useIsGuestOrLurker" /* 12661 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const ParticipantTypes = ParticipantTypes2.ParticipantTypes;
let result = set.fileFinishedImporting("modules/video_calls/getParticipantTitle.tsx");
2026-07-20 16:05:17 +00:00
export default function getParticipantTitle(guild_id, type, name) {
if (type.type === ParticipantTypes.ACTIVITY) {
name = undefined;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
name = name.name;
}
2026-07-29 08:29:29 +00:00
if (name == null) {
name = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return name;
2026-07-20 16:05:17 +00:00
} else {
const user = type.user;
let id;
2026-07-29 08:29:29 +00:00
if (user != null) {
2026-07-20 16:05:17 +00:00
id = user.id;
}
2026-08-24 06:08:38 +00:00
const result = useIsGuestOrLurker.isGuestOrLurkerInGuild(guild_id.guild_id, id);
const obj2 = useIsGuestOrLurker;
2026-07-20 16:05:17 +00:00
let str = "";
2026-08-24 06:08:38 +00:00
const name1 = getNicknameDefault.getName(guild_id.getGuildId(), guild_id.id, type.user);
2026-07-20 16:05:17 +00:00
if (result) {
2026-07-29 08:29:29 +00:00
const intl = tmp10(1236).intl;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
str = " " + intl.string(tmp10(1236).t["pFO/Ph"]);
2026-07-20 16:05:17 +00:00
}
return name1 + str;
}
};