* 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
16 lines
492 B
JavaScript
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);
|
|
};
|
|
}
|