decord/source/actions/ChannelCollapseActionCreators.tsx

26 lines
850 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10046
// Function ID: 10047
// Dependencies: [5048, 709, 6834, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 10046
import dispatcherDefault from "dispatcher" /* 709 */;
import handleConnectionOpenDefault from "handleConnectionOpen" /* 6834 */;
import closure_2 from "updateUserGuildSettingsInternal" /* 5048 */;
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
}
};