decord/alpha/source/actions/ChannelCollapseActionCreators.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 10350
// Function ID: 10351
// Name: ChannelCollapseActionCreators
2026-10-10 08:08:14 +00:00
// Dependencies: [5966, 584, 6805, 2]
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 10350 (ChannelCollapseActionCreators)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-10 08:08:14 +00:00
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 6805 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5966 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
update(channelId) {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "CHANNEL_COLLAPSE", channelId };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
},
toggleCollapseGuild(id) {
const obj = UserGuildSettingsManagerDefault;
const obj2 = { hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(id) };
2026-10-03 08:58:59 +00:00
const result = obj.saveUserGuildSettings(id, obj2);
const obj3 = DispatcherDefault;
const obj4 = { type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id };
obj3.dispatch(obj4);
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
let result = size.fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
export default obj;