mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-11 17:59:20 +01:00
11 lines
347 B
JavaScript
11 lines
347 B
JavaScript
import { store } from '../_store/store'
|
|
|
|
export function toggleContentWarningShown (realm) {
|
|
let shown = store.getComposeData(realm, 'contentWarningShown')
|
|
let contentWarning = store.getComposeData(realm, 'contentWarning')
|
|
store.setComposeData(realm, {
|
|
contentWarning: shown ? contentWarning : '',
|
|
contentWarningShown: !shown
|
|
})
|
|
}
|