   ## Need to be able to edit the child message and be able to post within
   ## the target parent.
   canEdit(child) and canPost group, parent
-
-idle = 1000   ## one second
 
 @message2group = (message) ->
   findMessage(message)?.group

      , editors, msg

  delayedEditor2messageUpdate = (id) ->
    Meteor.clearTimeout editorTimers[id]
    editors = findMessage(id).editing
    editorTimers[id] = Meteor.setTimeout ->
      editor2messageUpdate id, editors
    , idle

Meteor.methods
  messageUpdate: (id, message) -> _messageUpdate id, message

import { defaultFormat } from './settings.coffee'
import { ShareJS } from 'meteor/edemaine:sharejs'

idleUpdate = 1000      ## one second of idle time before edits update message
idleStop = 60*60*1000  ## one hour of idle time before auto stop editing

## Thanks to https://github.com/aldeed/meteor-simple-schema/blob/4ead24bcc92e9963dd994c07d275eac144733c3e/simple-schema.js#L548-L551
@idRegex = "[23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz]{17}"
