mattermost-mobile/app/reducers/views/notification.js
enahum 6324f22095 PLT-5630 Implement push notifications and unread badge on app icon (#338)
* enable ios push notifications

* enable android push notifications

* NOTICE for push notification and message bar

* include message in noty

* re-wording notices

* feedback review
2017-03-13 09:51:21 -04:00

13 lines
347 B
JavaScript

// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {ViewTypes} from 'app/constants';
export default function notification(state = null, action) {
switch (action.type) {
case ViewTypes.NOTIFICATION_CHANGED:
return action.data;
default:
return state;
}
}