 
                 connection.on "close", =>
                     if @selfUnmount
+                        alert "selfUnmount"
                         return
 
-                    @props.addAlert type: "warning", "Founder left the channel!"
+                    @addNotice "Founder left the channel!"
+                    @setState channelActive: false
 
                 @peer.on "connection", (connection) =>
                     connection.on "open", =>

        (Dom.div null,
            (ChatLink peerIdForFounder: @state.peerIdForFounder),
            (ChatMessages messages: @state.messages),
            (ChatForm sendMessage: @sendMessage))

    sendMessage: (message) ->
        messages = @state.messages


    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
