29 lines
1 KiB
TypeScript
29 lines
1 KiB
TypeScript
// Module ID: 10351
|
|
// Function ID: 10352
|
|
// Name: ChannelCollapseActionCreators
|
|
// Dependencies: [5966, 584, 6806, 2]
|
|
|
|
// Module 10351 (ChannelCollapseActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
|
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 6806 */;
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5966 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let obj = {
|
|
update(channelId) {
|
|
const obj = DispatcherDefault;
|
|
const obj2 = { type: "CHANNEL_COLLAPSE", channelId };
|
|
obj.dispatch(obj2);
|
|
},
|
|
toggleCollapseGuild(id) {
|
|
const obj = UserGuildSettingsManagerDefault;
|
|
const obj2 = { hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(id) };
|
|
const result = obj.saveUserGuildSettings(id, obj2);
|
|
const obj3 = DispatcherDefault;
|
|
const obj4 = { type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id };
|
|
obj3.dispatch(obj4);
|
|
}
|
|
};
|
|
let result = size.fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
|
|
|
|
export default obj;
|