 
 
 
-clear_all = ->
+clear_all = (local_state) ->
   opinion_views = fetch 'opinion_views'
   opinion_views_ui = fetch 'opinion_views_ui'
+
+  opinion_views_ui.last_interacted_with = local_state.key or local_state
+  save opinion_views_ui
 
   to_remove = []
   for k,v of opinion_views.active_views

                    height: 0 
                    borderLeft: '12px solid transparent'
                    borderRight: '12px solid transparent'                    
                    borderTop: '7px solid #2478CC'
            else 
              DIV 
                className: 'custom_view_triangle'
                style: 
                  left: triangle_left
                  bottom: if browser.is_mobile then -27 else -25
                dangerouslySetInnerHTML: __html: """<svg width="25px" height="13px" viewBox="0 0 25 13"><g id="Page-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Artboard" transform="translate(-1086.000000, -586.000000)" fill="#FFFFFF" stroke="#979797"><polyline id="Path" points="1087 599 1098.5 586 1110 599"></polyline></g></g></svg>"""


          SPAN 

  date_state.start = date_state.end = date_state.active = null 
  save date_state

reset_to_all = (local_state) ->
  clear_all(local_state)
  is_admin = fetch('/current_user').is_admin  
  show_others = !customization('hide_opinions') || is_admin
  opinion_views_ui = fetch 'opinion_views_ui'  
