         $addToSet: editing: Meteor.user().username
 
   messageEditStop: (id) ->
+    ## When updating this method, you might also want to update the "extreme"
+    ## form in `updateStopTimer` above.
     check Meteor.userId(), String
     if Meteor.isServer
       ## We used to do the following update in client too, to do


export messageExtraFields = [
  'editing'
  'submessageCount'
  'submessageLastUpdated'
  #'children'

    Meteor.clearTimeout stopTimers[id]
    stopTimers[id] = Meteor.setTimeout ->
      ## This code is like an extreme form of `messageEditStop` below:
      editing = Messages.findOne(id).editing ? []
      editor2messageUpdate id, editing
      Messages.update id,
        $set: editing: []
      lastDiff = findLastDiff id
      relevant = (editor for editor in editing when editor in (lastDiff?.updators ? []))
      if relevant.length
        MessagesDiff.update lastDiff._id,
          $addToSet: finished: $each: relevant
      ShareJS.model.delete id
    , idleStop

