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

This commit is contained in:
Elias Nahum 2019-08-17 12:02:07 -04:00 committed by Miguel Alatzar
parent ef8813f115
commit fca9a6e609

View file

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