     getInitialState: ->
         peerIdForFounder: null
         messages: []
+        channelActive: false
 
     componentWillMount: ->
         @selfUnmount = false


                connection.on "close", =>
                    if @selfUnmount
                        return

                    @props.addAlert type: "warning", "Founder left the channel!"

                @peer.on "connection", (connection) =>
                    connection.on "open", =>


    render: ->
        (Dom.form id: "chat-form", onKeyDown: @keyDown, onKeyUp: @keyUp,
            (Textarea id: "message", placeholder: "Type a message here...", valueLink: @linkState("message"), readOnly: not @props.channelActive))

    keyDown: (event) ->
        if event.key in _.keys @state.keysPressed
