decord/source/actions/ChannelCollapseActionCreators.tsx

26 lines
850 B
TypeScript
Raw Normal View History

// Module ID: 10895
// Function ID: 10896
// Dependencies: [4709, 706, 7056, 2]
2026-07-20 16:05:17 +00:00
// Module 10895
2026-09-02 09:53:35 +00:00
import dispatcherDefault from "dispatcher" /* 706 */;
import handleConnectionOpenDefault from "handleConnectionOpen" /* 7056 */;
import closure_2 from "updateUserGuildSettingsInternal" /* 4709 */;
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
}
};