1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-02 06:47:19 +01:00

12 lines
376 B
JavaScript
Raw Normal View History

2018-03-03 15:44:43 -08:00
import { store } from '../_store/store'
export function toggleContentWarningShown (realm) {
let shown = store.getComposeData(realm, 'contentWarningShown')
let contentWarning = store.getComposeData(realm, 'contentWarning')
let newShown = !shown
store.setComposeData(realm, {
contentWarning: newShown ? contentWarning : '',
contentWarningShown: newShown
})
2018-03-03 15:44:43 -08:00
}