Remove server SHA

This commit is contained in:
Alan Friedman 2019-05-14 08:27:24 -04:00
parent eebcf5f94c
commit c6a63cb469
4 changed files with 2 additions and 9 deletions

View File

@ -189,7 +189,6 @@ terms, please stop using the Service.</p>
} }
About.propTypes = { About.propTypes = {
serverSHA: PropTypes.string.isRequired,
roomId: PropTypes.string.isRequired, roomId: PropTypes.string.isRequired,
} }

View File

@ -259,7 +259,7 @@ export default class Home extends Component {
} }
case 'About': case 'About':
return { return {
component: <About roomId={this.props.roomId} serverSHA={this.props.serverSHA} />, component: <About roomId={this.props.roomId} />,
title: 'About', title: 'About',
} }
case 'Settings': case 'Settings':
@ -451,7 +451,6 @@ Home.propTypes = {
faviconCount: PropTypes.number.isRequired, faviconCount: PropTypes.number.isRequired,
soundIsEnabled: PropTypes.bool.isRequired, soundIsEnabled: PropTypes.bool.isRequired,
toggleSoundEnabled: PropTypes.func.isRequired, toggleSoundEnabled: PropTypes.func.isRequired,
serverSHA: PropTypes.string.isRequired,
toggleSocketConnected: PropTypes.func.isRequired, toggleSocketConnected: PropTypes.func.isRequired,
socketConnected: PropTypes.bool.isRequired, socketConnected: PropTypes.bool.isRequired,
} }

View File

@ -36,7 +36,6 @@ const mapStateToProps = (state) => {
joining: state.room.joining, joining: state.room.joining,
faviconCount: state.app.unreadMessageCount, faviconCount: state.app.unreadMessageCount,
soundIsEnabled: state.app.soundIsEnabled, soundIsEnabled: state.app.soundIsEnabled,
serverSHA: state.app.serverSHA,
socketConnected: state.app.socketConnected, socketConnected: state.app.socketConnected,
} }
} }

View File

@ -4,17 +4,13 @@ const initialState = {
windowIsFocused: true, windowIsFocused: true,
unreadMessageCount: 0, unreadMessageCount: 0,
soundIsEnabled: true, soundIsEnabled: true,
serverSHA: '',
socketConnected: false, socketConnected: false,
} }
const app = (state = initialState, action) => { const app = (state = initialState, action) => {
switch (action.type) { switch (action.type) {
case 'FETCH_CREATE_HANDSHAKE_SUCCESS': case 'FETCH_CREATE_HANDSHAKE_SUCCESS':
return { return state;
...state,
serverSHA: action.payload.json.sha,
}
case 'OPEN_MODAL': case 'OPEN_MODAL':
return { return {
...state, ...state,