decord/source/actions/ChannelCollapseActionCreators.tsx

26 lines
850 B
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 10922
// Function ID: 10923
// Dependencies: [4701, 706, 5492, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 10922
import dispatcherDefault from "dispatcher" /* 706 */;
import handleConnectionOpenDefault from "handleConnectionOpen" /* 5492 */;
2026-09-01 10:26:29 +00:00
import closure_2 from "updateUserGuildSettingsInternal" /* 4701 */;
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
}
};