   , []
   editing = editingMessage message, user
   raw = useTracker ->
-    messageRaw.get message._id
+    not editing and messageRaw.get message._id
   , [message._id]
   folded = useTracker ->
     (messageFolded.get message._id) and

              ###}
            </ul>
          </span>
          {###
          +messageLabels
          ###}
          <span className="lower-strut"/>
        </span>
      }

  root: ->
    if @root
      Messages.findOne @root

RootHeader = React.memo ({message}) ->
  return null unless message.root
  root = useTracker ->
    Messages.findOne message.root
  , [message.root]
  formattedTitle = useMemo ->
    formatTitleOrFilename root.title, false, false, true
  , [root]

  <div className="panel panel-default root" data-message={root._id}>
    <div className="panel-heading compact title">
      <div className="message-left-buttons push-down btn-group btn-group-xs">
        <a className="btn btn-info focusButton" aria-label="Focus" href={pathFor 'message', {group: root.group, message: root._id}}>
          <span className="fas fa-sign-in-alt" aria-hidden="true"/>
        </a>
      </div>
      <span className="space"/>
      <span className="title panel-title"
       dangerouslySetInnerHTML={__html: formattedTitle}/>
      <MessageTags message={message}/>
      <MessageLabels message={message}/>
    </div>
  </div>
RootHeader.displayName = 'RootHeader'

Template.registerHelper 'formatTitle', ->
  formatTitleOrFilename @, false
