import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { me } from '../initial_state' import { changeChatSetting } from '../actions/chat_settings' import BlockHeading from '../components/block_heading' import Form from '../components/form' import SettingSwitch from '../components/setting_switch' import Divider from '../components/divider' class MessagesSettings extends ImmutablePureComponent { handleOnChange = (key, checked) => { this.props.onSave(key, checked) } render() { const { chatSettings } = this.props if (!chatSettings) return null return (