2026-09-11 10:30:06 +00:00
|
|
|
// Module ID: 17450
|
|
|
|
|
// Function ID: 17451
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ForumManager
|
2026-09-11 10:30:06 +00:00
|
|
|
// Dependencies: [1957, 1964, 7192, 7378, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-11 10:30:06 +00:00
|
|
|
// Module 17450 (ForumManager)
|
|
|
|
|
import ForumPostDataLoader from "ForumPostDataLoader" /* 7378 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7192 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +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)) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp3) {
|
2026-09-10 05:38:07 +00:00
|
|
|
ForumPostDataLoader.preloadForumThreads(channel);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
tmp3 = null != channel && channel.isForumLikeChannel();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const forumManager = new ForumManager();
|
2026-09-10 05:38:07 +00:00
|
|
|
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;
|