40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
// Module ID: 10778
|
|
// Function ID: 83670
|
|
// Name: getParticipantTitle
|
|
// Dependencies: [4149, 10779, 4320, 1212, 2]
|
|
// Exports: default
|
|
|
|
// Module 10778 (getParticipantTitle)
|
|
import { ParticipantTypes } from "ParticipantTypes";
|
|
|
|
let result = require("getNickname").fileFinishedImporting("modules/video_calls/getParticipantTitle.tsx");
|
|
|
|
export default function getParticipantTitle(guild_id, type, name) {
|
|
if (type.type === ParticipantTypes.ACTIVITY) {
|
|
name = undefined;
|
|
if (null != name) {
|
|
name = name.name;
|
|
}
|
|
let tmp11 = null;
|
|
if (null != name) {
|
|
tmp11 = name;
|
|
}
|
|
return tmp11;
|
|
} else {
|
|
const user = type.user;
|
|
let id;
|
|
if (null != user) {
|
|
id = user.id;
|
|
}
|
|
const result = require(10779) /* _isGuestOrLurkerInGuild */.isGuestOrLurkerInGuild(guild_id.guild_id, id);
|
|
const obj2 = require(10779) /* _isGuestOrLurkerInGuild */;
|
|
let str = "";
|
|
const name1 = importDefault(4320).getName(guild_id.getGuildId(), guild_id.id, type.user);
|
|
if (result) {
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
const _HermesInternal = HermesInternal;
|
|
str = " " + intl.string(require(1212) /* getSystemLocale */.t["pFO/Ph"]);
|
|
}
|
|
return name1 + str;
|
|
}
|
|
};
|