decord/source/actions/ChannelCollapseActionCreators.tsx
2026-08-28 06:19:39 +00:00

25 lines
850 B
TypeScript

// Module ID: 10639
// Function ID: 10640
// Dependencies: [4667, 709, 5449, 2]
// Module 10639
import dispatcherDefault from "dispatcher" /* 709 */;
import handleConnectionOpenDefault from "handleConnectionOpen" /* 5449 */;
import closure_2 from "updateUserGuildSettingsInternal" /* 4667 */;
let result = require("set").fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
export default {
update(channelId) {
let obj = dispatcherDefault;
obj = { type: "CHANNEL_COLLAPSE", channelId };
obj.dispatch(obj);
},
toggleCollapseGuild(id) {
let obj = handleConnectionOpenDefault;
obj = { hide_muted_channels: !guildCollapsed.isGuildCollapsed(id) };
const result = obj.saveUserGuildSettings(id, obj);
obj = { type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id };
dispatcherDefault.dispatch(obj);
}
};