Skip to content

Commit

Permalink
Fix regression close/leave/archive channel redirect to channel screen…
Browse files Browse the repository at this point in the history
… on Android (#3140)
  • Loading branch information
mattermost-build authored and migbot committed Aug 17, 2019
1 parent bfd5056 commit 9c00f51
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/screens/channel_info/channel_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
import {
Alert,
Platform,
ScrollView,
View,
} from 'react-native';
Expand Down Expand Up @@ -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(() => {
Expand Down

0 comments on commit 9c00f51

Please sign in to comment.