2026-09-30 07:29:52 +00:00
|
|
|
// Module ID: 10630
|
|
|
|
|
// Function ID: 10631
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ChannelCollapseActionCreators
|
2026-09-30 07:29:52 +00:00
|
|
|
// Dependencies: [5047, 573, 6733, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-30 07:29:52 +00:00
|
|
|
// Module 10630 (ChannelCollapseActionCreators)
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
2026-09-30 07:29:52 +00:00
|
|
|
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 6733 */;
|
|
|
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5047 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
update(channelId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
DispatcherDefault.dispatch({ type: "CHANNEL_COLLAPSE", channelId });
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
toggleCollapseGuild(id) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = UserGuildSettingsManagerDefault;
|
|
|
|
|
const result = obj.saveUserGuildSettings(id, { hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(id) });
|
|
|
|
|
const obj2 = { hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(id) };
|
|
|
|
|
DispatcherDefault.dispatch({ type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|