Files
cinny/src/client/action/settings.js
ginnyTheCat dc6e153b92 Notification sounds (#367)
* Basic notification sound support

* Add settings option for notification sounds

* Allow sound without desktop notifications
2022-03-18 09:07:11 +05:30

45 lines
996 B
JavaScript

import appDispatcher from '../dispatcher';
import cons from '../state/cons';
export function toggleSystemTheme() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_SYSTEM_THEME,
});
}
export function toggleMarkdown() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MARKDOWN,
});
}
export function togglePeopleDrawer() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_PEOPLE_DRAWER,
});
}
export function toggleMembershipEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MEMBERSHIP_EVENT,
});
}
export function toggleNickAvatarEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_NICKAVATAR_EVENT,
});
}
export function toggleNotifications() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_NOTIFICATIONS,
});
}
export function toggleNotificationSounds() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_NOTIFICATION_SOUNDS,
});
}