2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 17519
|
|
|
|
|
// Function ID: 17520
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ForumManager
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1958, 1965, 7225, 7411, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 17519 (ForumManager)
|
|
|
|
|
import ForumPostDataLoader from "ForumPostDataLoader" /* 7411 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
|
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7225 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-15 14:23:42 +00:00
|
|
|
const isStaticChannelRoute = fn(1965).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;
|