Android Leaving/Deleting channel redirects to info page of Town Square (#750)

This commit is contained in:
Chris Duarte
2017-07-17 12:56:09 -06:00
committed by Harrison Healey
parent daa193e2ce
commit e34f82a36a

View File

@@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
import {injectIntl, intlShape} from 'react-intl';
import {
Alert,
Platform,
ScrollView,
StyleSheet,
View
@@ -67,7 +68,11 @@ class ChannelInfo extends PureComponent {
close = () => {
EventEmitter.emit(General.DEFAULT_CHANNEL, '');
this.props.navigator.pop({animated: true});
if (Platform.OS === 'android') {
this.props.navigator.dismissModal({animated: true});
} else {
this.props.navigator.pop({animated: true});
}
};
goToChannelAddMembers = () => {