decord/source/modules/forums/ForumManager.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

34 lines
1.2 KiB
TypeScript

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