                                 file_path    = {if @props.path? then misc.path_split(@props.path).head}
                                 actions      = {@props.actions}
                                 show_heads   = true />
+                            {@render_preview_message() if @props.input.length > 0 and @state.is_preview_on}
                         </Panel>
                     </Col>
                 </Row>

                        x.history = immutable.Stack([initial])
                    if not x.editing
                        x.editing = {}
                    v[x.date - 0] = x

                actions.setState(messages : immutable.fromJS(v))

                            placeholder = {'Type a message...'}
                            onClick     = {@mark_as_read}
                            onChange    = {(value)=>@props.actions.set_input(@refs.input.getValue())}
                            onFocus     = {@focus_endpoint}
                            style       = {@chat_input_style}
                            />
                    </Col>
