2021-08-08 21:56:34 +05:30
|
|
|
import appDispatcher from '../dispatcher';
|
|
|
|
|
import cons from '../state/cons';
|
|
|
|
|
|
2022-01-03 06:16:43 -07:00
|
|
|
export function toggleSystemTheme() {
|
|
|
|
|
appDispatcher.dispatch({
|
|
|
|
|
type: cons.actions.settings.TOGGLE_SYSTEM_THEME,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 20:53:32 +05:30
|
|
|
export function toggleMarkdown() {
|
2021-08-08 21:56:34 +05:30
|
|
|
appDispatcher.dispatch({
|
|
|
|
|
type: cons.actions.settings.TOGGLE_MARKDOWN,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 20:53:32 +05:30
|
|
|
export function togglePeopleDrawer() {
|
2021-11-15 09:23:59 +05:30
|
|
|
appDispatcher.dispatch({
|
|
|
|
|
type: cons.actions.settings.TOGGLE_PEOPLE_DRAWER,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 20:53:32 +05:30
|
|
|
export function toggleMembershipEvents() {
|
|
|
|
|
appDispatcher.dispatch({
|
|
|
|
|
type: cons.actions.settings.TOGGLE_MEMBERSHIP_EVENT,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function toggleNickAvatarEvents() {
|
|
|
|
|
appDispatcher.dispatch({
|
|
|
|
|
type: cons.actions.settings.TOGGLE_NICKAVATAR_EVENT,
|
|
|
|
|
});
|
|
|
|
|
}
|