2018-03-03 15:44:43 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import { store } from '../_store/store'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								export function toggleContentWarningShown (realm) {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  let shown = store.getComposeData(realm, 'contentWarningShown')
							 | 
						
					
						
							
								
									
										
										
										
											2018-03-28 18:37:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  let contentWarning = store.getComposeData(realm, 'contentWarning')
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-11 22:55:11 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  let newShown = !shown
							 | 
						
					
						
							
								
									
										
										
										
											2018-03-28 18:37:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  store.setComposeData(realm, {
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-11 22:55:11 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    contentWarning: newShown ? contentWarning : '',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    contentWarningShown: newShown
							 | 
						
					
						
							
								
									
										
										
										
											2018-03-28 18:37:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  })
							 | 
						
					
						
							
								
									
										
										
										
											2018-03-03 15:44:43 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |