decord/source/modules/forums/ForumManager.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 17450
// Function ID: 17451
// Name: ForumManager
// Dependencies: [1957, 1964, 7192, 7378, 2]
2026-07-20 16:05:17 +00:00
// Module 17450 (ForumManager)
import ForumPostDataLoader from "ForumPostDataLoader" /* 7378 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7192 */;
2026-07-23 10:11:24 +00:00
require = fn;
const isStaticChannelRoute = fn(1964).isStaticChannelRoute;
2026-07-29 08:29:29 +00:00
class ForumManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { CHANNEL_PRELOAD: applyArgumentsResult.handleChannelPreload };
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
ForumManager.prototype["handleChannelPreload"] = function handleChannelPreload(channelId) {
channelId = channelId.channelId;
if (!isStaticChannelRoute(channelId)) {
const channel = ChannelStore.getChannel(channelId);
2026-07-29 08:29:29 +00:00
if (tmp3) {
ForumPostDataLoader.preloadForumThreads(channel);
2026-07-29 08:29:29 +00:00
}
tmp3 = null != channel && channel.isForumLikeChannel();
}
};
const forumManager = new ForumManager();
const size = fn(2);
const result = size.fileFinishedImporting("modules/forums/ForumManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default forumManager;