25 lines
847 B
TypeScript
25 lines
847 B
TypeScript
// Module ID: 9892
|
|
// Function ID: 9893
|
|
// Dependencies: [4589, 709, 5365, 2]
|
|
|
|
// Module 9892
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
import handleConnectionOpenDefault from "handleConnectionOpen" /* 5365 */;
|
|
import closure_2 from "updateUserGuildSettingsInternal" /* 4589 */;
|
|
|
|
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);
|
|
}
|
|
};
|