17 lines
704 B
TypeScript
17 lines
704 B
TypeScript
// Metro module 10840 (f10841).
|
|
import { ParticipantTypes } from "../calls/CallConstants";
|
|
import * as _useIsGuestOrLurker from "../guild_member/useIsGuestOrLurker";
|
|
import NicknameUtils from "../../utils/NicknameUtils";
|
|
import { intl, t } from "../../intl/index.native";
|
|
export default function getParticipantTitle(a0, a1, a2) {
|
|
if (a1.type === ParticipantTypes.ACTIVITY) {
|
|
let r45 = a2?.name;
|
|
if (r45 == null) {
|
|
r45 = null;
|
|
}
|
|
return r45;
|
|
}
|
|
const isGuestOrLurkerInGuild = _useIsGuestOrLurker.isGuestOrLurkerInGuild(a0.guild_id, a1.user?.id);
|
|
return NicknameUtils.getName(a0.getGuildId(), a0.id, a1.user) + (isGuestOrLurkerInGuild ? ` ${intl.string(t["pFO/Ph"])}` : "");
|
|
};
|