mattermost-mobile/app/reducers/views/client_upgrade.js
Chris Duarte 54ddec3d46 Prompt/require user to upgrade to new version (#948)
* Prompt/require user to upgrade to new version

* Update en.json

* Update app message text

* Fix typo and add copyright
2017-10-26 10:45:34 -04:00

16 lines
343 B
JavaScript

const initialState = {
lastUpdateCheck: 0
};
import {ViewTypes} from 'app/constants';
export default function clientUpgrade(state = initialState, action) {
switch (action.type) {
case ViewTypes.SET_LAST_UPGRADE_CHECK:
return {
lastUpdateCheck: Date.now()
};
default:
return state;
}
}