src/actions/websocket.js
function handleChannelConvertedEvent(msg) {
    return (dispatch, getState) => {
        const channelId = msg.data.channel_id;
        if (channelId) {
            const channel = getChannel(getState(), channelId);
            if (channel) {
                dispatch({
                    type: ChannelTypes.RECEIVED_CHANNEL,
                    data: {...channel, type: General.PRIVATE_CHANNEL},
                });
            }
        }
    };
}
function handleChannelConvertedEvent(msg) {
    return (dispatch, getState) => {
        const channelId = msg.data.channel_id;
        if (channelId) {
            const channel = getChannel(getState(), channelId);
            if (channel) {
                dispatch({
                    type: ChannelTypes.RECEIVED_CHANNEL,
                    data: {...channel, type: General.PRIVATE_CHANNEL},
                });
            }
        }
    };
}
function handleChannelConvertedEvent ( msg ) { return ( dispatch , getState ) => { const channelId = msg . data . channel_id ; if ( channelId ) { const channel = getChannel ( getState ( ) , channelId ) ; if ( channel ) { dispatch ( { type : ChannelTypes . RECEIVED_CHANNEL , data : { ... channel , type : General . PRIVATE_CHANNEL } , } ) ; } } } ; }
handleChannelConvertedEvent handles updating of channel which is converted from public to private
handleChannelConvertedEvent handles updating of channel which is converted from public to private