 
     set_is_preview: (is_preview) =>
         @setState(is_preview:is_preview)
-
-    set_preview_button: (preview_button) =>
-        @setState(preview_button:preview_button)
 
     save_scroll_state: (position, height, offset) =>
         # height == 0 means chat room is not rendered


                <Col sm={1}></Col>
            </Row>

    render_preview_button_on: ->
        tip = <span>
            Enable chat preview
        </span>

        <div className="pull-right small" style={marginTop: '-105px', marginRight: '3px', cursor:'pointer'} onClick={@button_on_click}>
            <Tip title='Message Preview' tip={tip} placement='left'>
                <Icon name='eye'/>
            </Tip>
        </div>

    render_timetravel_button: ->
        tip = <span>

    send_chat: (e) ->
        @scroll_to_bottom()
        # turns off preview
        @button_off_click()
        e.preventDefault()
        mesg = @refs.input.getValue()
        # block sending empty messages
