Fix regression close/leave/archive channel redirect to channel screen on Android (#3140)

This commit is contained in:
Mattermost Build 2019-08-17 18:07:46 +02:00 committed by Miguel Alatzar
parent bfd50568cc
commit 9c00f51058

View file

@ -6,7 +6,6 @@ import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
import {
Alert,
Platform,
ScrollView,
View,
} from 'react-native';
@ -113,11 +112,8 @@ export default class ChannelInfo extends PureComponent {
if (redirect) {
actions.setChannelDisplayName('');
}
if (Platform.OS === 'android') {
actions.dismissModal();
} else {
actions.popTopScreen();
}
actions.popTopScreen();
};
goToChannelAddMembers = preventDoubleTap(() => {