decord/source/actions/ChannelCollapseActionCreators.tsx

26 lines
847 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9892
// Function ID: 9893
// Dependencies: [4589, 709, 5365, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 9892
2026-08-24 06:08:38 +00:00
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import handleConnectionOpenDefault from "handleConnectionOpen" /* 5365 */;
import closure_2 from "updateUserGuildSettingsInternal" /* 4589 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
update(channelId) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_COLLAPSE", channelId };
obj.dispatch(obj);
},
toggleCollapseGuild(id) {
2026-08-24 06:08:38 +00:00
let obj = handleConnectionOpenDefault;
2026-07-20 16:05:17 +00:00
obj = { hide_muted_channels: !guildCollapsed.isGuildCollapsed(id) };
const result = obj.saveUserGuildSettings(id, obj);
obj = { type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id };
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch(obj);
2026-07-20 16:05:17 +00:00
}
};