   ## Scroll to this message if it's been requested.
   if scrollToLater == @data._id
     scrollToMessage @data._id
-
-  ## Fold naturally folded (minimized and deleted) messages
-  ## by default on initial load.
-  messageFolded.set @data._id, true if natural = naturallyFolded @data
 
   ## Fold referenced attached files by default on initial load.
   #@$.children('.panel').children('.panel-body').find('a[href|="/file/"]')

  ## Image gets unnaturally folded if it's referenced at least once
  ## and doesn't have any children (don't want to hide children, and this
  ## can also lead to infinite loop if children has the image reference).
  messageFolded.set id, true if images[id].naturallyFolded or
    (not images[id].children and
     (images[id].count > 0 or
      (imagesInternal[images[id].file]? and
       imagesInternal[images[id].file].count > 0)))
  ## No longer care about this image if it's not referenced and doesn't have
  ## a rendered template.
  if images[id].count == 0 and id not of id2template

  @editBody = new ReactiveVar null
  @lastTitle = null
  @savedTitles = []

  ## Fold naturally folded (minimized and deleted) messages
  ## by default on initial load.
  defaultFolded.set @data._id, natural = naturallyFolded @data
  messageFolded.set @data._id, true if natural

  @autorun =>
    data = Template.currentData()
    return unless data?
