decord/source/actions/ChannelCollapseActionCreators.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

25 lines
850 B
TypeScript

// Module ID: 10964
// Function ID: 10965
// Dependencies: [4741, 573, 7116, 2]
// Module 10964
import dispatcherDefault from "dispatcher" /* 573 */;
import handleConnectionOpenDefault from "handleConnectionOpen" /* 7116 */;
import closure_2 from "updateUserGuildSettingsInternal" /* 4741 */;
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);
}
};