 
   'click .focusButton': (e) -> $(e.currentTarget).tooltip 'hide'
 
-  'click .editButton': (e, t) ->
-    e.preventDefault()
-    e.stopPropagation()
-    message = @_id  #e.target.getAttribute 'data-message'
-    if editing @
-      stop = -> Meteor.call 'messageEditStop', message
-      if safeToStopEditing()
-        stop()
-      else
-        t.editStopping.set true
-        t.autorun (computation) ->
-          if safeToStopEditing()
-            t.editStopping.set false
-            stop()
-            computation.stop()
-    else
-      Meteor.call 'messageEditStart', message
-
   'click .togglePreview': (e, t) ->
     e.preventDefault()
     e.stopPropagation()

  canReply: -> canPost @group, @_id
  editingRV: -> Template.instance().editing.get()
  editingNR: -> Tracker.nonreactive -> Template.instance().editing.get()
  editStopping: -> Template.instance().editStopping.get()
  editTitle: -> Template.instance().editTitle.get()
  editData: ->
    #_.extend @,

editingMessage = (message, user = Meteor.user()) ->
  user? and user.username in (message.editing ? [])

idle = 1000   ## one second

messageClass = ->
