decord/source/actions/ChannelCollapseActionCreators.tsx

24 lines
740 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 9623
// Function ID: 9624
// Dependencies: [4450, 709, 5212, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 9623
2026-07-29 08:29:29 +00:00
import updateUserGuildSettingsInternal from "updateUserGuildSettingsInternal";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let result = require("handleConnectionOpen").fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
update(channelId) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_COLLAPSE", channelId };
obj.dispatch(obj);
},
toggleCollapseGuild(id) {
2026-08-05 07:35:12 +00:00
let obj = importDefault(5212);
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-07-29 08:29:29 +00:00
importDefault(709).dispatch(obj);
2026-07-20 16:05:17 +00:00
}
};