Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
24 lines
981 B
TypeScript
24 lines
981 B
TypeScript
// Module ID: 10622
|
|
// Function ID: 10623
|
|
// Name: ChannelCollapseActionCreators
|
|
// Dependencies: [5026, 573, 6723, 2]
|
|
|
|
// Module 10622 (ChannelCollapseActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 6723 */;
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5026 */;
|
|
|
|
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 });
|
|
}
|
|
};
|