23 lines
650 B
TypeScript
23 lines
650 B
TypeScript
// Metro module 10232 (f10233).
|
|
import UserGuildSettingsStore from "../stores/UserGuildSettingsStore";
|
|
import Dispatcher from "../Dispatcher";
|
|
import UserGuildSettingsManager from "../modules/user_settings/UserGuildSettingsManager";
|
|
const r15 = {
|
|
update: (a0) => {
|
|
Dispatcher.dispatch({
|
|
type: "CHANNEL_COLLAPSE",
|
|
channelId: a0
|
|
});
|
|
},
|
|
toggleCollapseGuild: (a0) => {
|
|
UserGuildSettingsManager.saveUserGuildSettings(a0, {
|
|
hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(a0)
|
|
});
|
|
Dispatcher.dispatch({
|
|
type: "GUILD_TOGGLE_COLLAPSE_MUTED",
|
|
guildId: a0
|
|
});
|
|
}
|
|
};
|
|
export default r15;
|