   'click .foldButton': (e, t) ->
     e.preventDefault()
     e.stopPropagation()
-    t.folded.set not t.folded.get()
+    messageFolded.set @_id, not messageFolded.get @_id
 
   'click .rawButton': (e, t) ->
     e.preventDefault()
     e.stopPropagation()
-    t.raw.set not t.raw.get()
+    messageRaw.set @_id, not messageRaw.get @_id
 
   'click .editButton': (e, t) ->
     e.preventDefault()

      images[id].count -= 1

historify = (x) -> () ->
  history = Template.instance().history.get()
  if history?
    history[x]
  else

      #editor.setOption 'spellcheck', true

  keyboard: ->
    capitalize messageKeyboard.get(@_id) ? defaultKeyboard
  activeKeyboard: (match) ->
    if (messageKeyboard.get(@_id) ? defaultKeyboard) == match
      'active'
    else
      ''
