pinafore/routes/_actions/contentWarnings.js

7 lines
221 B
JavaScript
Raw Normal View History

2018-03-04 00:44:43 +01:00
import { store } from '../_store/store'
export function toggleContentWarningShown (realm) {
let shown = store.getComposeData(realm, 'contentWarningShown')
store.setComposeData(realm, {contentWarningShown: !shown})
}