mattermost-mobile/app/actions/views/drawer.js
enahum 81526fbb09 Channel drawer (#154)
* Channel list drawer
* Get channels by category
* Fix and connect websocket
* Fix Select first team using the team members

* create loadMe and fix login actions to loads the teams

* Add android back button handler for the channel drawer

* Channel drawer styling and functionality

* Mark channel as viewed and fixed reset unread counts

* Unread above/below indicators

* Improve performance replacing ScrollView with ListView

* Fix unread indicators

* Addressing review feedback
2017-01-03 19:49:28 -03:00

16 lines
492 B
JavaScript

// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {ViewTypes} from 'app/constants';
export function openChannelDrawer() {
return async (dispatch, getState) => {
dispatch({type: ViewTypes.TOGGLE_CHANNEL_DRAWER, data: true}, getState);
};
}
export function closeChannelDrawer() {
return async (dispatch, getState) => {
dispatch({type: ViewTypes.TOGGLE_CHANNEL_DRAWER, data: false}, getState);
};
}