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