2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 11259
|
|
|
|
|
// Function ID: 11260
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ChannelCollapseActionCreators
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [4969, 573, 7393, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 11259 (ChannelCollapseActionCreators)
|
|
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 7393 */;
|
|
|
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4969 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
update(channelId) {
|
|
|
|
|
DispatcherDefault.dispatch({ type: "CHANNEL_COLLAPSE", channelId });
|
|
|
|
|
},
|
|
|
|
|
toggleCollapseGuild(id) {
|
|
|
|
|
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 });
|
|
|
|
|
}
|
|
|
|
|
};
|