decord/alpha/source/modules/chat/native/ChatViewPopups.tsx

62 lines
1.9 KiB
TypeScript
Raw Normal View History

// Module ID: 12358
// Function ID: 12359
2026-07-20 16:05:17 +00:00
// Name: ChatViewPopups
// Dependencies: [19, 12359, 12363, 12371, 2]
2026-07-20 16:05:17 +00:00
// Module 12358 (ChatViewPopups)
import useIsHubRealNamePromptShowingDefault from "useIsHubRealNamePromptShowing" /* 12359 */;
import WelcomeScreenUtils from "WelcomeScreenUtils" /* 12363 */;
import GuildDirectoryNicknameUpsellModalActionCreatorsDefault from "GuildDirectoryNicknameUpsellModalActionCreators" /* 12371 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
2026-07-20 16:05:17 +00:00
class ChatViewPopups {
constructor(arg0) {
guildId = global.guildId;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
closure_2 = undefined;
closure_3 = undefined;
closure_1 = closure_3.useRef(false);
tmp = closure_1(closure_2[1])(guildId);
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
obj = guildId(closure_2[2]);
2026-07-20 16:05:17 +00:00
showWelcomeModal = obj.useShowWelcomeModal(guildId, global.channelId);
2026-08-24 06:08:38 +00:00
closure_3 = showWelcomeModal;
2026-07-20 16:05:17 +00:00
items = [, , ];
items[0] = guildId;
items[1] = showWelcomeModal;
items[2] = tmp;
2026-08-24 06:08:38 +00:00
effect = closure_3.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (!ref.current) {
if (closure_2) {
const obj2 = {
guildId,
onHide() {
ref.current = false;
return false;
}
2026-07-20 16:05:17 +00:00
};
GuildDirectoryNicknameUpsellModalActionCreatorsDefault.open(obj2);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-07-20 16:05:17 +00:00
} else if (showWelcomeModal) {
const obj4 = {
guildId,
onHide() {
ref.current = false;
return false;
}
2026-07-20 16:05:17 +00:00
};
const result = WelcomeScreenUtils.openWelcomeActionSheet(obj4);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-07-20 16:05:17 +00:00
}
}
}, items);
return null;
}
}
const size = fn(2);
let result = size.fileFinishedImporting("modules/chat/native/ChatViewPopups.tsx");
2026-07-20 16:05:17 +00:00
export default noop.memo(ChatViewPopups);
2026-07-20 16:05:17 +00:00
export { ChatViewPopups };